首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > 4井字

4井字

  • 资源大小:15.78 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: 井字

资 源 简 介

Introduction A four-dimensional version of the traditional TicTacToe game, using the pygame library. The game was invented during boring lectures on a sheet of paper at the University of Essen. The graphics is simple and two- dimensional (as it can be drawn on a sheet of paper!), but there exist various hidden diagonals and "hyper-diagonals" on the playing field. To "see" them, imagine that each row of 3x3 (2D) TicTacToe fields form a cube. Furthermore, the three rows can be put together into a four dimensional "hyper-cube". :-) Enjoy! Running the Game Running the game requires that Python and Pygame are installed. For most Linux distributions, Pygame is contained in the package repositories. For Windows, it can be downloaded from www.pygame.org. If pygame is properly installed, you can start the game with: python 4D_TTT_graphics.py The graphic version allows only games player vs. computer so far. Wit
VIP VIP
0.187711s