新人学习练手项目,单页写完,以后可能会重写.
不需要任何额外依赖库,图形界面用python自带的tkinter库实现,一般来说整个项目用可直接在安装了python的环境运行.
1.在棋盘上下棋,连成四个或以上可以用棋子攻击对方,每颗棋子造成1点伤害,把对方HP降到0你就赢了。 2.进攻时对方如果在下一回合也发动攻击,那么棋子之间会相互碰撞,降低伤害。 3.进攻时,如果在空出来的位置上下棋,就能破坏掉原本在这个位置上的棋子,从而降低别人的攻击。 4.棋盘上不一样颜色的格子上的棋子回增加进攻伤害.
1.添加可对战AI(写了一部分)
2.完善图形界面
3.重写
A single-page application written for learning purposes. May be rewritten in the future.
- Requires no additional dependencies.
- The GUI is implemented using Python's built-in
tkinterlibrary. - The project should run directly in any Python environment.
- Place pieces on the board. Connect 4+ pieces to attack opponents, with each piece dealing 1 damage. Reduce opponent's HP to 0 to win.
- If both players attack simultaneously in consecutive turns, attacks will collide and reduce damage.
- Placing pieces on vacated positions during attacks can destroy existing pieces there, weakening enemy attacks.
- Pieces on grid squares with different colors provide attack damage bonuses.
- Add PvAI functionality (partially implemented)
- Improve GUI implementation
- Code refactoring