parent
d730c6fb67
commit
a85bb90aaf
@ -0,0 +1,41 @@
|
||||
# Mots mélés
|
||||
|
||||
This game is about words to search in a grid.
|
||||
It first started as a personal side project, but now, I want to give it life.
|
||||
|
||||
## How it works
|
||||
|
||||
Pretty simple. You gave it a grid of letter like this
|
||||
```var GRID = [
|
||||
['S','S','S','A','U','B','A','G','N','E'],
|
||||
['E','P','A','A','M','V','E','N','C','E'],
|
||||
['L','U','L','M','I','R','A','M','A','S'],
|
||||
['R','A','O','G','E','X','A','C','O','E'],
|
||||
['A','L','N','E','G','N','A','R','O','R'],
|
||||
['T','O','U','L','O','N','G','L','R','E'],
|
||||
['N','D','S','T','N','U','E','I','E','Y'],
|
||||
['I','N','P','E','E','N','I','L','D','H'],
|
||||
['C','A','S','S','U','J','E','R','F','L'],
|
||||
['E','B','E','L','S','I','S','S','A','C']
|
||||
];```
|
||||
|
||||
And a list of words to find like this
|
||||
|
||||
> var words = ['AIX','APT','ARLES','AUBAGNE','AUPS','AVIGNON','BANDOL','CANNES','CASSIS','DIGNE','FREJUS','HYERES','LUNEL','MIRAMAS','NICE','ORANGE','SALON','SORGUES','TOULON','VENCE'];
|
||||
|
||||
And that should be it. (well, you need 2 other parameters I'm gonna get rid of.
|
||||
|
||||
## TODO
|
||||
|
||||
### v0.0.2
|
||||
* diagonal detection (for now, it's only vertical and horizontal words)
|
||||
* get rid of those 2 useless parameters
|
||||
* better protection against user
|
||||
|
||||
### v0.0.3
|
||||
* make a user friendly "generator"
|
||||
** interface where a user can enter a grid and a list of words easily giving an output like the JS one right now
|
||||
|
||||
### v0.0.4
|
||||
* make an automatic generator
|
||||
** give it a size, it'll fetch words via an API and make the grid with those.
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Mot mélés</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<script src="js/fabric.1.4.0.min.js"></script>
|
||||
<script src="js/const.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="css/style.css" media="screen" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>Mots Mélés</h1>
|
||||
<div id="playground">
|
||||
<div id="firstGame">
|
||||
<canvas id="c"></canvas>
|
||||
|
||||
<ul id="words">
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<script src="js/script.js"></script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue