Commit graph

190 commits

Author SHA1 Message Date
Gwenhael Le Moine
f775d6ec8e single loop in format_level 2011-07-05 09:32:38 +02:00
Gwenhael Le Moine
575f1b92f5 use [] instead of charAt() 2011-07-05 09:18:27 +02:00
Gwenhael Le Moine
5275c5221e typo 2011-07-04 21:18:20 +02:00
Gwenhael Le Moine
bb2cee5dff removing an ugly switch by adding an ugly array :/ 2011-07-04 21:17:14 +02:00
Gwenhael Le Moine
f14b429b17 ; to amek js2-mode happy 2011-07-04 21:10:44 +02:00
Gwenhael Le Moine
0eb514274b correct width of #blackboard 2011-07-04 17:56:53 +02:00
Gwenhael Le Moine
1cb2bba63b center 2011-07-04 17:54:17 +02:00
Gwenhael Le Moine
1153e88fd6 OMG with colors and ungodly slowliness 2011-07-04 17:53:00 +02:00
Gwenhael Le Moine
ff42619fcd refoctoring to have state always as first argument ; fix end of game test 2011-07-04 17:23:22 +02:00
Gwenhael Le Moine
69c1e5d0f5 indentation 2011-07-04 17:19:39 +02:00
Gwenhael Le Moine
56d0ef5335 old C code 2011-07-04 17:19:22 +02:00
Gwenhael Le Moine
b8af3517d8 add n and p to move among levels ; end of game alert 2011-07-04 16:51:03 +02:00
Gwenhael Le Moine
dfba38b71b set focus 2011-07-04 16:43:20 +02:00
Gwenhael Le Moine
424a25cb26 import html5boilerplate
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
2011-07-04 16:41:02 +02:00
Gwenhael Le Moine
103e17f838 fully functional 2011-07-04 16:40:15 +02:00
Gwenhael Le Moine
a692c31ba7 starting javascript version (for world domination) 2011-07-04 16:11:42 +02:00
Gwenhael Le Moine
e67b6382c7 explicit exit codes 2011-07-04 10:39:00 +02:00
Gwenhael Le Moine
a4130d1526 use exit 2011-07-04 10:38:03 +02:00
Gwenhael Le Moine
88a5ca8e1c remove uselesss break 2011-07-04 10:37:18 +02:00
Gwenhael Le Moine
a738393ba6 fix passing item_coord ; check malloced pointers before using them 2011-07-04 10:36:43 +02:00
Gwenhael Le Moine
373979459b one less malloc 2011-07-04 10:33:46 +02:00
Gwenhael Le Moine
6dcb17eff3 add {} 2011-07-04 10:30:56 +02:00
Gwenhael Le Moine
2206c6bb71 remove superfluous break 2011-07-04 10:29:13 +02:00
Gwenhael Le Moine
38ebb91d8d remove unused variables 2011-07-04 10:28:53 +02:00
Gwenhael Le Moine
86df23a64b typo 2011-07-04 09:56:46 +02:00
Gwenhael Le Moine
dd3f3558f7 unused --argument 2011-07-04 09:56:22 +02:00
Gwenhael Le Moine
dfdd3c9883 refined make_a_move to make the vector manipulation more visible 2011-07-04 09:49:42 +02:00
Gwenhael Le Moine
630842effe make get_pos more generic 2011-07-04 09:12:58 +02:00
Gwenhael Le Moine
5553ee3706 adjustments 2011-07-04 08:57:56 +02:00
Gwenhael Le Moine
a3cdd30291 bug no more 2011-07-04 08:36:14 +02:00
Gwenhael Le Moine
622a3334b7 comment 2011-07-03 23:06:22 +02:00
Gwenhael Le Moine
8240c631c7 add fixme 2011-07-03 23:05:31 +02:00
Gwenhael Le Moine
b7e495630c restore nl before leaving 2011-07-03 23:04:12 +02:00
Gwenhael Le Moine
48f2cc5541 comment 2011-07-03 23:01:45 +02:00
Gwenhael Le Moine
9585ed44d3 introduce some naughtiness, use ncurses' KEY_ codes to define direction 2011-07-03 23:01:02 +02:00
Gwenhael Le Moine
73717a08a0 display a end-game message 2011-07-03 22:56:00 +02:00
Gwenhael Le Moine
02795db58a indent 2011-07-03 22:39:58 +02:00
Gwenhael Le Moine
39e7222cf1 free options too 2011-07-03 22:38:40 +02:00
Gwenhael Le Moine
88129f01ea remove useless call to display 2011-07-03 22:38:20 +02:00
Gwenhael Le Moine
6e21e84181 document 2011-07-03 22:38:00 +02:00
Gwenhael Le Moine
0e22f03d41 -l needs a lower limit too 2011-07-03 22:24:05 +02:00
Gwenhael Le Moine
d794acf4a4 upper limit for -l, starting from 1 ; number levels 2011-07-03 22:22:38 +02:00
Gwenhael Le Moine
a3da293035 dead code is dead 2011-07-03 22:13:41 +02:00
Gwenhael Le Moine
ce6cd3a726 there's no -v argument 2011-07-03 22:12:40 +02:00
Gwenhael Le Moine
b47723c590 add arguments parsing usgin getopt, -l to set the level, -b for no colors, -h for help, with --long options too 2011-07-03 22:12:17 +02:00
Gwenhael Le Moine
a4ae3a6f83 that inssane sh'ism compile if necessary and run this .c file.
Comes from http://stackoverflow.com/questions/12830/most-elegant-amusing-or-strange-code-one-liners/12907#12907
2011-07-01 19:29:23 +02:00
Gwenhael Le Moine
e5ea31e69e not necessary anymore, see first line of star.c
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
2011-07-01 19:28:16 +02:00
Gwenhael Le Moine
81d4eca04b beau 2011-07-01 19:21:02 +02:00
Gwenhael Le Moine
6cd428d31c what do I care? 2011-07-01 19:14:35 +02:00
Gwenhael Le Moine
bcccd3dfb2 unused variable 2011-07-01 18:00:43 +02:00