ef-end-y / PythonLessons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PythonLessons

lesson3.py, lesson4.py, lesson5.py - low-level pixel-by-pixel rendering. It's shown how to draw a line, a triangle, paint over a polygon, impose a texture, etc.

lesson4lesson5


chess.py - a chess bot plays with itself. There are only pawns, rooks and kings, but you can add other pieces. This is an example how the bot thinks ahead and chooses the best move

chess playing


sokoban.py is a telegram bot that plays Sokoban with you (https://en.wikipedia.org/wiki/Sokoban). Do not program like this - it's a hack in a certain way. I made it for small size only.

☿ - a warehouse keeper
◯ - a box
◉ - a box on a storage location

sokoban playing


fire.py run it in console and get fire

fire

About


Languages

Language:Python 100.0%