added JavaDocs for the new and adapted functions added a new invalid map for testing purposes fixed implemented the logic to check for invalid maps in the method received in ServerGameLogic
66 lines
859 B
JSON
66 lines
859 B
JSON
{
|
|
"width": 10,
|
|
"height": 10,
|
|
"ships": [
|
|
{
|
|
"length": 4,
|
|
"x": 2,
|
|
"y": 8,
|
|
"rot": "RIGHT"
|
|
},
|
|
{
|
|
"length": 3,
|
|
"x": 2,
|
|
"y": 5,
|
|
"rot": "DOWN"
|
|
},
|
|
{
|
|
"length": 3,
|
|
"x": 5,
|
|
"y": 6,
|
|
"rot": "RIGHT"
|
|
},
|
|
{
|
|
"length": 2,
|
|
"x": 4,
|
|
"y": 4,
|
|
"rot": "RIGHT"
|
|
},
|
|
{
|
|
"length": 2,
|
|
"x": 7,
|
|
"y": 4,
|
|
"rot": "RIGHT"
|
|
},
|
|
{
|
|
"length": 2,
|
|
"x": 7,
|
|
"y": 4,
|
|
"rot": "RIGHT"
|
|
},
|
|
{
|
|
"length": 1,
|
|
"x": 6,
|
|
"y": 2,
|
|
"rot": "RIGHT"
|
|
},
|
|
{
|
|
"length": 1,
|
|
"x": 8,
|
|
"y": 2,
|
|
"rot": "RIGHT"
|
|
},
|
|
{
|
|
"length": 1,
|
|
"x": 6,
|
|
"y": 0,
|
|
"rot": "RIGHT"
|
|
},
|
|
{
|
|
"length": 1,
|
|
"x": 8,
|
|
"y": 0,
|
|
"rot": "RIGHT"
|
|
}
|
|
]
|
|
} |