Battleship:JavaScript 游戏

时间:2021-06-11 18:42:52
【文件属性】:
文件名称:Battleship:JavaScript 游戏
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-11 18:42:52
JavaScript 战舰 Battleship 是流行游戏的 javascript 版本。 这个 javascript 文件将包含一个用于玩战舰的类。 主要目的是查看机器人在指定数量的游戏中清除棋盘的速度。 示例机器人/设置战舰游戏的示例。 //Amount of games / size of board var b = new Battleship ( 100 , 10 ) ; //amount of games to loop through for ( var games = 0 ; games < b . amountOfGames ; games ++ ) { //If the game isn't over continue to fire a random shot while ( b . gameStatus . gameOver != true ) {
【文件预览】:
Battleship-master
----battleship.html(1KB)
----battleship.css(469B)
----battleship.js(6KB)
----README.md(1005B)

网友评论