Skip to content

114514ggb/4ascend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

注意

新人学习练手项目,单页写完,以后可能会重写.


如何运行

不需要任何额外依赖库,图形界面用python自带的tkinter库实现,一般来说整个项目用可直接在安装了python的环境运行.


游戏规则

1.在棋盘上下棋,连成四个或以上可以用棋子攻击对方,每颗棋子造成1点伤害,把对方HP降到0你就赢了。 2.进攻时对方如果在下一回合也发动攻击,那么棋子之间会相互碰撞,降低伤害。 3.进攻时,如果在空出来的位置上下棋,就能破坏掉原本在这个位置上的棋子,从而降低别人的攻击。 4.棋盘上不一样颜色的格子上的棋子回增加进攻伤害.


以后规划

1.添加可对战AI(写了一部分)

2.完善图形界面

3.重写


Beginner Practice Project

A single-page application written for learning purposes. May be rewritten in the future.


How to Run

  • Requires no additional dependencies.
  • The GUI is implemented using Python's built-in tkinter library.
  • The project should run directly in any Python environment.

Game Rules

  1. 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.
  2. If both players attack simultaneously in consecutive turns, attacks will collide and reduce damage.
  3. Placing pieces on vacated positions during attacks can destroy existing pieces there, weakening enemy attacks.
  4. Pieces on grid squares with different colors provide attack damage bonuses.

Future Plans

  1. Add PvAI functionality (partially implemented)
  2. Improve GUI implementation
  3. Code refactoring

About

复刻的一个小游戏:4ascend(四子棋)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages