搜索资源列表
missilecommand
- I have just written this to acompany the asteroids example program. Its a simple PURE VB APP, no api or directx etc. Simply shoot the moving baddies, they stop at random intervals at this time they cannot be shot. So its a bit more strategic
上古神器
- 代码模拟了龟兔赛跑爬山的情况,其中有个时钟触发设置每秒执行一次循环,乌龟的规则是:50% 的机会快走(右移三格) 20% 的机会下滑(左移六格) 30% 的机会慢走(右移一格). 兔子的规则是:20% 的机会睡觉(不移动) 20% 的机会大跳(右移九格) 10% 的机会大滑(左移十二格) 30% 的机会小跳(右移一格) 20% 的机会小滑(左移两格). 其中最先走到整 70 格的胜利,超过 70 格的从头开始 程序在一条线上打印了龟兔移动的轨迹,当两者重合时打印 P 乌龟
chinachess
- 棋盘信息无疑会快于90个字节的棋盘,但这并不意味着所有的运算和操作都会更快。使用32个字节的数据表示,程序员在确定一个棋子的位置时往往需要增加额外的移位操作以取出一个字节中含有的两个坐标信息。2.2 比特棋盘(BitBoards)随着计算机存储能力的大幅提高,棋盘表示的空间需求往往已不是设计人员最为关注的问题。-chessboard information will undoubtedly faster than 90 bytes of chessboard. But this does not
javasaolei
- 用java编写的五子棋程序,可供个位参考-Using java prepared 331 program, available bits Reference
arkanoid-final
- Jarkanoid is a Java arkanoid game with bouncer physics, bonuses, customizable walls and clean code. Useful as an educational tool on simple game design. Also my early Java university project. You can still see the early bits of documentation (in poli
magic-tower
- 魔塔的源代码,整体架构和一些零零碎碎的东西-Magic Tower' s source code, the overall architecture and some bits and pieces of things
guessNumber
- 该小游戏主要是自己选择一个数字的位数n,然后系统随机产生一个n位数字,游戏者开始猜,每次猜数字会提示猜对多少个数字,用B提示,如果顺序放了,数字对了,用A提示,直到“n A,0B”,表示猜对了数字,游戏结束。-The game select a digital number of bits n, then the system randomly generates an n-bit numbers, the game began to guess, each number guessing wi
binary-to-bcd2
- "二进制数调整BCD码的方法是将二进制码左移8次,每次移位后都检查低四位LSD+3是否大于7,如是则加3,否则不加,高4位MSD作同样处理"-" Binary number to adjust the BCD code is the binary code shifted left eight times, after each shift, check for a low whether four LSD+3 is greater than 7, the case of plus 3,
robocode
- 一个经典的ROBOTCODE代码,这个机器人包括各种有用的代码片段,并不是为了成为一个优秀的战士。-This bot includes all sorts of useful snippets. It is not designed to be a good fighter (although it does well 1v1), just to show how certain things are done Bits of code lifted from Nicator and Chri
source
- 水仙花数是指一个 n 位数 ( n≥3 ),它的每个位上的数字的 n 次幂之和等于它本身。(例如:1^3 + 5^3 + 3^3 = 153) // 功能:判断输入 nValue 是否为水仙花数 // 输入: nValue为正整数 // 输出:无 // 返回:如果输入为水仙花数,返回1,否则返回0-Daffodils refers to a number of bits n (n ≥ 3), the numbers on each of its bits equal to n-t
FPGA-Racing-Game
- 在开发板EGO1上实现赛车游戏,语言为verilog,内含bits文件-racing game in verilog