文件名称:BattleShipGame:战舰游戏
文件大小:638KB
文件格式:ZIP
更新时间:2024-07-22 17:58:17
Java
战舰游戏 游戏“战舰”的实现。 要运行点击式游戏,请执行以下操作 $cd BattleShipGrid $蝙蝠先生 要在服务器上进行战斗,请执行以下操作: $cd BattleShipNet $start_battle.bat 这会启动一个服务器,两个客户端,并安排客户端之间的战舰战斗。 AI : 添加战舰策略 要添加策略,请扩展 BattleShipStrategy(例如参见 BattleShipStrategyRandom)并使用您的策略创建游戏(参见 GameFactory)。 战舰游戏概述
【文件预览】:
BattleShipGame-master
----.gitignore(215B)
----README.md(552B)
----LICENSE(1KB)
----BattleShipNet()
--------BattleShipNetServer.java(3KB)
--------mr.bat(22B)
--------BattleShipNetClient.java(3KB)
--------make.bat(163B)
--------client.bat(66B)
--------Configuration.java(597B)
--------CommunicationModule.java(2KB)
--------BattleShipNetMain.java(542B)
--------BattleShipNetClientMain.java(1KB)
--------BattleShipNetClientThread.java(2KB)
--------BattleShipNetThread.java(814B)
--------BattleShipNetServerGame.java(3KB)
--------BattleShipNetClientGame.java(680B)
--------server.bat(73B)
--------BattleShipNetGameFactory.java(670B)
--------BattleShipNetProtocol.java(3KB)
--------BattleShipNetServerThread.java(1KB)
--------BattleShipStrategyServer.java(83B)
--------start_battle.bat(42B)
----BattleShipGrid()
--------mr.bat(13B)
--------BattleShipGridVisualizer.java(488B)
--------BattleShipGrid.java(2KB)
--------PlayerThread.java(571B)
--------make.bat(96B)
--------BattleShipGridMouseListener.java(796B)
--------run.bat(62B)
--------BattleShipGridButtonActionListener.java(291B)
--------BattleShipGridMain.java(2KB)
--------GridFactory.java(274B)
----doc()
--------classes.dia(25KB)
--------classes.png(630KB)
----Grid()
--------mr.bat(13B)
--------make.bat(112B)
--------Rectangle.java(398B)
--------Grid.java(3KB)
--------run.bat(58B)
--------GridMouseListener.java(530B)
--------GridMain.java(627B)
--------GridVisualizer.java(291B)
----BattleShip()
--------PlayerFactory.java(428B)
--------mr.bat(13B)
--------BattleShipStrategyNull.java(137B)
--------GameFactory.java(291B)
--------BattleShipStrategy.java(123B)
--------make.bat(54B)
--------Game.java(3KB)
--------test()
--------run.bat(41B)
--------BoardFactory.java(870B)
--------Tile.java(1KB)
--------Point.java(1KB)
--------Player.java(2KB)
--------BoardVisualizer.java(759B)
--------Dimension.java(471B)
--------PointConversionException.java(65B)
--------ShipFactory.java(1KB)
--------BattleShipMain.java(153B)
--------Board.java(6KB)
--------PointFactory.java(1KB)
--------Strategy.java(61B)
--------BattleShipStrategyRandom.java(163B)
--------Ship.java(824B)