This project is clone a game sokoban (sobokan).
Writing in Python 3 and curses library (module nnuklear.py).
mkvirtualenv -a $(pwd) -i flit nuklear
python3 -m venv venv
source venv/bin/activate
pip install flit
flit install --deps production --only-deps
When Python throws excepion: ModuleNotFoundError: No module named 'i18n'
:
pip install python-i18n
python3 nnuklear.py
Elements of witch the board consists:
- # - wall
- o - container
- . - destroyer
- & - player (robot, bulldozer, etc. :))
- (space) - empty area
Begin the level with a word level
and then open the square bracket. End the level follows the closing square bracket. The word begin
opening structure the level. Optional options can be placed between the opening square bracket and the
word begin
:
number
- level numberauthor
- level authortitle
- level title
For example:
; this is a comment
level [
; spaces are required before and after sign `=`
title = "anything"
author = "Łukasz A. Pelc"
number = 1
begin
######
#& o.#
######
level [
begin
###
#.#
#o#
# #
#&#
###
]
arrows
- moving the playerr
- reload the boardq
- quit