SimpleBattleship

所属分类:Leetcode/题库
开发工具:C#
文件大小:18KB
下载次数:0
上传日期:2016-01-29 13:22:53
上 传 者sh-1993
说明:  面试编程测试
(Programming test for interview)

文件列表:
Battleships.Console (0, 2016-01-29)
Battleships.Console\App.config (184, 2016-01-29)
Battleships.Console\Battleships.csproj (4273, 2016-01-29)
Battleships.Console\ConsoleInterface.cs (499, 2016-01-29)
Battleships.Console\Program.cs (553, 2016-01-29)
Battleships.Console\Properties (0, 2016-01-29)
Battleships.Console\Properties\AssemblyInfo.cs (1398, 2016-01-29)
Battleships.Logic (0, 2016-01-29)
Battleships.Logic\Battleships.Logic.csproj (2798, 2016-01-29)
Battleships.Logic\GameProcessor.cs (4263, 2016-01-29)
Battleships.Logic\IBoardFactory.cs (128, 2016-01-29)
Battleships.Logic\IUserInterface.cs (157, 2016-01-29)
Battleships.Logic\Properties (0, 2016-01-29)
Battleships.Logic\Properties\AssemblyInfo.cs (1410, 2016-01-29)
Battleships.Logic\SimpleRandomBoardFactory.cs (2347, 2016-01-29)
Battleships.Model (0, 2016-01-29)
Battleships.Model\Battleship.cs (396, 2016-01-29)
Battleships.Model\Battleships.Model.csproj (2609, 2016-01-29)
Battleships.Model\Board.cs (3849, 2016-01-29)
Battleships.Model\Destructor.cs (395, 2016-01-29)
Battleships.Model\Position.cs (682, 2016-01-29)
Battleships.Model\Properties (0, 2016-01-29)
Battleships.Model\Properties\AssemblyInfo.cs (1410, 2016-01-29)
Battleships.Model\Ship.cs (1357, 2016-01-29)
Battleships.Model\ShipFactory.cs (626, 2016-01-29)
Battleships.sln (1992, 2016-01-29)

##C# Programming Test: Battleships - A console guessing game ###Goal Sink all the ships on the grid inputting coordinates in the console [Description and Rules on Wikipedia](https://en.wikipedia.org/wiki/Battleship_(game)) ###Project Description Very simple game of battle ships. Basically it is a console application to allow a single human player to play a one-sided game of battleships against the computer. The program created a 10x10 grid, and place a number of ships on the grid at random with the following sizes: * 1x Battleship (5 squares) * 2x Destroyers (4 squares) The console application acceptd input from the user in the format “A5” to signify a square to target, and feedback to the user whether the shot was success, and additionally report on the sinking of any vessels.

近期下载者

相关文件


收藏者