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 |
|
Gwenhael Le Moine
|
1d92fb056f
|
more functional, store state in state
|
2011-07-01 17:59:38 +02:00 |
|
Gwenhael Le Moine
|
771f4ff155
|
comment about stdscr
|
2011-07-01 17:35:03 +02:00 |
|
Gwenhael Le Moine
|
9c50fdb739
|
count moves + change a bit the display
|
2011-07-01 17:31:01 +02:00 |
|
Gwenhael Le Moine
|
b25a90e024
|
protect the colors
|
2011-07-01 17:24:03 +02:00 |
|
Gwenhael Le Moine
|
6ffa3ef86d
|
with colors!
|
2011-07-01 17:22:14 +02:00 |
|
Gwenhael Le Moine
|
d20d0885b4
|
request load after moving to next level in case of victory
|
2011-07-01 17:11:15 +02:00 |
|
Gwenhael Le Moine
|
a5956feff1
|
selected actor is bold
|
2011-07-01 17:10:22 +02:00 |
|
Gwenhael Le Moine
|
6a36c45a6e
|
add next/prev level and reload functionalities
|
2011-07-01 17:04:23 +02:00 |
|
Gwenhael Le Moine
|
37f02c757d
|
forgot to break
|
2011-07-01 16:58:48 +02:00 |
|
Gwenhael Le Moine
|
10f64607e8
|
flexible count of levels
|
2011-07-01 16:57:19 +02:00 |
|
Gwenhael Le Moine
|
524e4d223d
|
go to next level when current one is won, number of level hardcoded
|
2011-07-01 16:50:37 +02:00 |
|
Gwenhael Le Moine
|
c8b4e33795
|
now with ncurses
|
2011-07-01 16:32:45 +02:00 |
|
Gwenhael Le Moine
|
a098bba42b
|
playable with ncurses, no level management
|
2011-07-01 16:32:15 +02:00 |
|
Gwenhael Le Moine
|
e0734e9cd8
|
oops + playable (sort of)
|
2011-07-01 15:57:33 +02:00 |
|
Gwenhael Le Moine
|
5726123ceb
|
x is a more readable symbol for gifts than *
|
2011-07-01 15:45:43 +02:00 |
|
Gwenhael Le Moine
|
c27494e73d
|
untabify
|
2011-07-01 15:36:55 +02:00 |
|
Gwenhael Le Moine
|
c5e974a15d
|
readabler (?)
|
2011-07-01 15:05:38 +02:00 |
|
Gwenhael Le Moine
|
6b7fb34084
|
.
|
2011-07-01 15:03:50 +02:00 |
|
Gwenhael Le Moine
|
639b9eda4b
|
use cell
|
2011-07-01 12:29:04 +02:00 |
|
Gwenhael Le Moine
|
11f804d1cf
|
add typedef'd enums, use direction's
|
2011-07-01 12:27:57 +02:00 |
|
Gwenhael Le Moine
|
0aea5112e4
|
beautify level strings
|
2011-07-01 12:19:23 +02:00 |
|
Gwenhael Le Moine
|
e2005d8b12
|
straight struct, no typedef
|
2011-07-01 11:55:06 +02:00 |
|
Gwenhael Le Moine
|
4fcfc251a1
|
comment hairy conditional + remove debug print
|
2011-07-01 11:53:51 +02:00 |
|
Gwenhael Le Moine
|
9b190a3bd5
|
free
|
2011-07-01 11:48:08 +02:00 |
|
Gwenhael Le Moine
|
c9a3b8a7a6
|
add a Makefile
|
2011-07-01 09:06:14 +02:00 |
|
Gwenhael Le Moine
|
6ae0b7dcbc
|
add all levels of the levelset
|
2011-06-30 18:03:36 +02:00 |
|
Gwenhael Le Moine
|
d8c2f3114f
|
phew, working...
|
2011-06-30 17:53:59 +02:00 |
|
Gwenhael Le Moine
|
538de01186
|
big step
|
2011-06-30 16:15:03 +02:00 |
|
Gwenhael Le Moine
|
e73d385170
|
let's play with C
|
2011-06-30 15:17:21 +02:00 |
|
Gwenhael Le Moine
|
c4262eb414
|
original version as it was before HanoiLUG's CodingDojo #6 (2011.05.21)
|
2011-05-21 16:56:50 +07:00 |
|
Gwenhael Le Moine
|
a02b3fcefd
|
move_1_step doesn't affect the real position of objectToMove
|
2011-05-21 16:54:34 +07:00 |
|
Gwenhael Le Moine
|
51d8e91a62
|
Make pass the move_1_step
|
2011-05-21 16:02:16 +07:00 |
|
Gwenhael Le Moine
|
9642939f99
|
introduce move_1_step and pass
|
2011-05-21 15:51:21 +07:00 |
|
Gwenhael Le Moine
|
a9eba6657c
|
add test_move_1_step
|
2011-05-21 15:42:53 +07:00 |
|
Gwenhael Le Moine
|
c26136dd3b
|
replace tmp with newpos
|
2011-05-21 15:27:56 +07:00 |
|
Gwenhael Le Moine
|
dbb937f808
|
use objectToMove in move method
|
2011-05-21 15:19:14 +07:00 |
|
Gwenhael Le Moine
|
6e40724dd7
|
add object to move
|
2011-05-21 15:11:41 +07:00 |
|
Gwenhael Le Moine
|
3ec2e98afa
|
before kata
|
2011-05-21 15:06:10 +07:00 |
|
Gwenhael Le Moine
|
2f98f6fa09
|
cosmetics
Signed-off-by: Gwenhael Le Moine <cycojesus@darkstar.example.net>
|
2010-01-05 10:23:29 +07:00 |
|
Gwenhael Le Moine
|
479d901ae6
|
first, lua and ruby
Signed-off-by: Gwenhael Le Moine <cycojesus@darkstar.example.net>
|
2010-01-05 10:11:23 +07:00 |
|