• Tests
  • Battleship field validator (PHP)
Test

Battleship field validator (PHP)

In this challenge the task is to validate if the disposition of ship in the popular game "Battleships" is valid or not.

Time limit / average

180 min. / 60 min.

Price

2 credits

Test description

In this challenge the task is to validate if the disposition of ships in the popular game "Battleships" is valid or not. This requires deep understanding of the programming language as well as ability to pay attention to detail. Respondent will be working with 2-dimensional array to assure that the grid is valid and the game can be played. This challenge is considered to have a high difficulty.