搜索资源列表
TankWar2.8
- 坦克大战图片版比较两上字符串STRING1和STRING2所含字符是否相同,若相同则显示“MATCH”,若不同则显示“NO MATCH”。-Battle City on the image version to compare two character strings contained in STRING1 and STRING2 are the same, if the same is displayed " MATCH" , if different from the s
Penalties-game
- 先说一下方向的设定。我的想法比较简单,就是左中右三个方向,用字符串来表示。射门或者扑救的时候,直接输入方向。所以这里我准备用raw_input。有同学是用1-8的数字来表示八个方向,每次输入一个数字,这也是可以的。不过这样守门员要扑住的概率可就小多了。 至于电脑随机挑选方向,如果你是用数字表示,就用我们之前讲过的randint来随机就行。不过我这次打算用random的另一个方法:choice。它的作用是从一个list中随机挑选一个元素。 -Let me talk about set
