RSokoban 0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/COPYING +674 -0
- data/README.rdoc +47 -0
- data/TODO +34 -0
- data/bin/rsokoban +10 -0
- data/data/microban.xsb +1838 -0
- data/data/original.xsb +1497 -0
- data/data/test.xsb +30 -0
- data/lib/rsokoban/crate.rb +16 -0
- data/lib/rsokoban/exception.rb +7 -0
- data/lib/rsokoban/game.rb +105 -0
- data/lib/rsokoban/level.rb +269 -0
- data/lib/rsokoban/level_loader.rb +58 -0
- data/lib/rsokoban/level_set.rb +31 -0
- data/lib/rsokoban/man.rb +17 -0
- data/lib/rsokoban/moveable.rb +22 -0
- data/lib/rsokoban/option.rb +93 -0
- data/lib/rsokoban/position.rb +24 -0
- data/lib/rsokoban/raw_level.rb +16 -0
- data/lib/rsokoban/storage.rb +14 -0
- data/lib/rsokoban/ui/console.rb +107 -0
- data/lib/rsokoban/ui/curses_console.rb +123 -0
- data/lib/rsokoban/ui/ui.rb +44 -0
- data/lib/rsokoban.rb +29 -0
- data/test/original.xsb +1497 -0
- data/test/tc_level.rb +773 -0
- data/test/tc_level_loader.rb +88 -0
- data/test/tc_level_set.rb +42 -0
- data/test/tc_man.rb +55 -0
- data/test/tc_moveable.rb +41 -0
- data/test/tc_position.rb +75 -0
- data/test/tc_raw_level.rb +35 -0
- data/test/test.rb +16 -0
- data/test/test_file1.xsb +9 -0
- data/test/test_file2.xsb +49 -0
- data/test/ui/tc_console.rb +75 -0
- metadata +102 -0
data/README.rdoc
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
= Welcome to RSokoban !
|
2
|
+
|
3
|
+
RSokoban is a clone of the famous {Sokoban game}[http://en.wikipedia.org/wiki/Sokoban].
|
4
|
+
I wrote this program just to improve my skills in Ruby. Currently, you can play only in a console
|
5
|
+
window.
|
6
|
+
|
7
|
+
#####
|
8
|
+
# #
|
9
|
+
#$ #
|
10
|
+
### $##
|
11
|
+
# $ $ #
|
12
|
+
### # ## # ######
|
13
|
+
# # ## ##### ..#
|
14
|
+
# $ $ ..#
|
15
|
+
##### ### #@## ..#
|
16
|
+
# #########
|
17
|
+
#######
|
18
|
+
|
19
|
+
Enjoy the game.
|
20
|
+
|
21
|
+
== Documentation
|
22
|
+
Players can look at {the wiki}[https://github.com/lkdjiin/RSokoban/wiki].
|
23
|
+
|
24
|
+
Developpers can look at Level and Game.
|
25
|
+
|
26
|
+
|
27
|
+
== Dependancies
|
28
|
+
Ruby >= 1.9
|
29
|
+
|
30
|
+
== Installing RSokoban
|
31
|
+
Installing via a gem is easy.
|
32
|
+
Go to the RSokoban folder and build the gem :
|
33
|
+
|
34
|
+
gem build rsokoban.gemspec
|
35
|
+
|
36
|
+
Then install it :
|
37
|
+
|
38
|
+
gem install RSokoban-x-xx.gem
|
39
|
+
|
40
|
+
Now start playing :
|
41
|
+
|
42
|
+
rsokoban
|
43
|
+
|
44
|
+
== Questions and/or Comments
|
45
|
+
Feel free to email {Xavier Nayrac}[mailto:xavier.nayrac@gmail.com]
|
46
|
+
with any questions.
|
47
|
+
|
data/TODO
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
|
2
|
+
--- v0.71 ---
|
3
|
+
|
4
|
+
(done)CursesConsole
|
5
|
+
(done)--portable
|
6
|
+
(done)--curses (default)
|
7
|
+
(done)--help-output
|
8
|
+
(done)curses: level completed (yes/no) > y or n
|
9
|
+
(done)gem
|
10
|
+
|
11
|
+
wiki installing
|
12
|
+
|
13
|
+
wiki curses console
|
14
|
+
|
15
|
+
Picture must be a class
|
16
|
+
|
17
|
+
--- v0.90 ---
|
18
|
+
|
19
|
+
undo
|
20
|
+
|
21
|
+
--- v1.0 ---
|
22
|
+
|
23
|
+
--tk
|
24
|
+
|
25
|
+
skining
|
26
|
+
|
27
|
+
--- next ---
|
28
|
+
|
29
|
+
format fichier niveau xml (.slc)
|
30
|
+
--windows ?
|
31
|
+
--gnome ?
|
32
|
+
--kde ?
|
33
|
+
--fxruby ?
|
34
|
+
save, reload
|
data/bin/rsokoban
ADDED