|
|
@86:c0d500d241ff
љ
|
5 years |
Alex Martynov |
added redraw after snake creation
|
|
|
@85:0b3f97153492
љ
|
5 years |
me.dendik |
Automated merge with ?ssh://kodomo/snake
|
|
|
@84:48fe00e5c181
љ
|
5 years |
me.dendik |
Added example empty snake
|
|
|
@83:12d903be186e
љ
|
5 years |
Alex Martynov |
merge
|
|
|
@82:50056998a673
љ
|
5 years |
Alex Martynov |
fixed(?) erors in field rotation
|
|
|
@81:5f5f5229daba
љ
|
5 years |
me.dendik |
Automated merge with ?ssh://kodomo/snake
|
|
|
@80:2f56e186e75c
љ
|
5 years |
me.dendik |
Fixed initial value for snake.Rule.direction
|
|
|
@79:3a3c231b0912
љ
|
5 years |
Alex Martynov |
stupid snake moved
|
|
|
@78:36ce9881e2c3
љ
|
5 years |
Alex Martynov |
opend file insted of name given for snake.load()
|
|
|
@77:e75b57888494
љ
|
5 years |
Alex Martynov |
engine.create_snake() fixed
|
|
|
@76:2756d863bffb
љ
|
5 years |
Alex Martynov |
merge
|
|
|
@75:2ca1c6a7561a
љ
|
5 years |
Alex Martynov |
error in Snake.fill() fixed
|
|
|
@74:66a80dc7306d
љ
|
5 years |
me.dendik |
Automated merge with ?ssh://kodomo/snake
|
|
|
@73:ae4bbffb80fe
љ
|
5 years |
me.dendik |
Improved(?) readability of snake.Rule.parse_cell
|
|
|
@72:abd610462b02
љ
|
5 years |
Alex Martynov |
merge
|
|
|
@71:198e91c5b94c
љ
|
5 years |
Alex Martynov |
some errors fixed
|
|
|
@70:e8eabd9530a1
љ
|
5 years |
me.dendik |
snake.Rule.load returns self for convenience
|
|
|
@69:927aea2cf89b
љ
|
5 years |
me.dendik |
Automated merge with ?ssh://kodomo/snake
|
|
|
@68:2d4b7e24d914
љ
|
5 years |
me.dendik |
snake.Rule.load accidentally swallowed one more line; fixed that
|
|
|
@67:bec0ab8061dc
љ
|
5 years |
Alex Martynov |
merge
|
|
|
@66:547cc748b4be
љ
|
5 years |
Alex Martynov |
import snake + engine.legal_moves in engine.step() fixed
|
|
|
@65:e9c803523da4
љ
|
5 years |
me.dendik |
snake load methods: Python complains about mixing iterators & methods on ?
|
|
|
@64:a3bcbe6eda95
љ
|
5 years |
me.dendik |
Automated merge with ?ssh://kodomo/snake
|
|
|
@63:27a43636ab6e
љ
|
5 years |
me.dendik |
Fixed line length in snake.Rule.load
|
|
|
@62:eefa136de996
љ
|
5 years |
Alex Martynov |
enumerate simplification
|
|
|
@61:66ae851a3264
љ
|
5 years |
Alex Martynov |
merge
|
|
|
@60:a3bb04e72924
љ
|
5 years |
Alex Martynov |
added check for dead snakes
|
|
|
@59:a5af620950da
љ
|
5 years |
martiran |
add stupid snake
|
|
|
@58:b46dd72b6afe
љ
|
5 years |
me.dendik |
Automated merge with ?ssh://kodomo/snake
|
|
|
@57:2f62804e21fc
љ
|
5 years |
me.dendik |
Added example snake
|
|
|
@56:2d48ad3500d2
љ
|
5 years |
martiran |
fixed syntax error
|
|
|
@55:0c02646962fa
љ
|
5 years |
martiran |
fexed syntax error
|
|
|
@54:836ce89ecc91
љ
|
5 years |
martiran |
fix canvas.hieght, canvas.width error
|
|
|
@53:91160a357d1a
љ
|
5 years |
martiran |
merge
|
|
|
@52:f12238066c6d
љ
|
5 years |
martiran |
engine.Cell.eq fixed
|
|
|
@51:995c5300f498
љ
|
5 years |
me.dendik |
Added Cell attribute snake_type to snake.Rule pattern cells
|
|
|
@50:e1cfe742dda8
љ
|
5 years |
me.dendik |
Automated merge with ?ssh://kodomo/snake
|
|
|
@49:eb11f45839ee
љ
|
5 years |
me.dendik |
snake.py: fixed syntax error
|
|
|
@48:68bff7cf1aac
љ
|
5 years |
martiran |
Merge
|
|
|
@47:14c3d41ce15d
љ
|
5 years |
martiran |
Merge
|
|
|
@46:85221e4417b7
љ
|
5 years |
martiran |
engine.create_snake()
|
|
|
@45:acaa43cb15ad
љ
|
5 years |
me.dendik |
snake.Snake.fill: fixed syntax error
|
|
|
@44:a7e53eb3f54d
љ
|
5 years |
me.dendik |
snake.py: added some (ugly) docstrings, closes #7
|
|
|
@43:2a7b76d66e78
љ
|
5 years |
me.dendik |
snake.Rule.applies previously unnecesarily reimplemented Cell.eq; ?
|
|
|
@42:21a5779088e6
љ
|
5 years |
me.dendik |
main.py: added if name == "main" condition to automatic ui startup
|
|
|
@41:bcad0f5464bf
љ
|
5 years |
me.dendik |
snake.Rule.load: give reasonable error rather than crash on empty lines
|
|
|
@40:94945f11c78d
љ
|
5 years |
me.dendik |
snake.Snake.fill: tail takes precedence over body & head
|
|
|
@39:2de0dd929b1c
љ
|
5 years |
me.dendik |
implemented snake.Rule.rotate; untested yet
|
|
|
@38:db4d49b346d3
љ
|
5 years |
me.dendik |
implemented snake.Rule.applies; untested yet
|
|
|
@37:67e6785396e1
љ
|
5 years |
me.dendik |
snake.Rule.load: added check that center of rule is own head
|
|
|
@36:639470c54107
љ
|
5 years |
me.dendik |
snake.Rule.load: added check that rules are exactly 7 lines long
|
|
|
@35:dc8b4c81a72a
љ
|
5 years |
me.dendik |
snake: removed some cruft
|
|
|
@34:8f8af9ef99e6
љ
|
5 years |
me.dendik |
snake: implemented Snake.load, Rule.load; untested yet
|
|
|
@33:17f615088ed6
љ
|
5 years |
martiran |
half of snake.Snake.load()
|
|
|
@32:b2eaeeb74d87
љ
|
5 years |
martiran |
fixed lots of small errors
|
|
|
@31:76d0514d1ef9
љ
|
5 years |
martiran |
Engine.refill() -> Snake.fill()
|
|
|
@30:c7a1ed15ae42
љ
|
5 years |
martiran |
snake.py passes
|
|
|
@29:af9337dd3cf1
љ
|
5 years |
martiran |
corrected UI.load(), corrected UI.step(), UI.end(), root made self.root
|
|
|
@28:06f6a43de54a
љ
|
5 years |
martiran |
main.UI.run() main.UI.step() #engine.canvas.w #engine.canvas.h
|
|
|
@27:a9358a0852c7
љ
|
5 years |
Alex Martynov |
UI.Snake.load()
|
|
|
@26:a29fb8b305d7
љ
|
5 years |
Alex Martynov |
Merge
|
|
|
@25:2881ede732a7
љ
|
5 years |
Alex Martynov |
import tkFileDialog as tkfd
|
|
|
@24:876720141659
љ
|
5 years |
Alex Martynov |
once more
|
|
|
@23:6189d0cecd2d
љ
|
5 years |
Alex Martynov |
deleted UI.load_number()
|
|
|
@22:753d9a0c951b
љ
|
5 years |
me.dendik |
Refactored spacing in main.py
|
|
|
@21:000c22d7b89c
љ
|
5 years |
me.dendik |
Changes function to create button widgets to what I meant by it
|
|
|
@20:37e8bca3ae66
љ
|
5 years |
martiran |
main.UI.init() main.UI.button_pack()
|
|
|
@19:e50ef4c6cc54
љ
|
5 years |
martiran |
main.UI.init(), part
|
|
|
@18:f5fd82328530
љ
|
5 years |
martiran |
UI passes
|
|
|
@17:d7a9035493c9
љ
|
5 years |
martiran |
sell - cell error fixed
|
|
|
@16:0e10ae8006e9
љ
|
5 years |
martiran |
Erron in engine.redraw() fixed, self.canvas.delete(all)
|
|
|
@15:7393cf186fd6
љ
|
5 years |
martiran |
Cell.redrw(), Engine.redraw()
|
|
|
@14:d7650ea84300
љ
|
5 years |
martiran |
unnecessary passes deleted
|
|
|
@13:5755534e5a8b
љ
|
5 years |
martiran |
Automated merge with ?ssh://kodomo.fbb.msu.ru/snake
|
|
|
@12:a1a766440639
љ
|
5 years |
martiran |
Engine.move_snake(); Engine.refill()
|
|
|
@11:0ece930a4d1b
љ
|
5 years |
me.dendik |
Removed a few unnecessary "pass"-es
|
|
|
@10:f25c0439251f
љ
|
5 years |
martiran |
Automated merge with ?ssh://kodomo.fbb.msu.ru/snake
|
|
|
@9:2c9ca13b4413
љ
|
5 years |
martiran |
Engine.field_init(); Engine.step()
|
|
|
@8:1b6cfae2315b
љ
|
5 years |
me.dendik |
Fixed typo in Engine
|
|
|
@7:49653aa12c5b
љ
|
5 years |
martiran |
Automated merge with ?ssh://kodomo.fbb.msu.ru/snake
|
|
|
@6:5873301dc558
љ
|
5 years |
martiran |
Cell.eq(); Engine.legal_moves(); fixed small errors
|
|
|
@5:f1a508e855ce
љ
|
5 years |
martiran |
correct
|
|
|
@4:c17699ec63fc
љ
|
5 years |
me.dendik |
Fixed trac post-commit hook, fixes #11
|
|
|
@3:dd67c8c3ea7a
љ
|
5 years |
me.dendik |
Added README, closes #11
|
|
|
@2:597c0ddea0ab
љ
|
5 years |
martiran |
check automatic close, close #6
|
|
|
@1:97e55c13fbda
љ
|
5 years |
martiran |
engine with "pass" functions, fix #6
|
|
|
@0:c2ace6e23988
љ
|
5 years |
martiran |
start
|