+ 1
How can i do that?
code: https://code.sololearn.com/cSSyEtqUZn0X what im missing in the game is that i need to somehow convert the values of the hashmap into a 2D array. there are explanations all over the code. you can read everything, run the code and see what im missing in your own eyes.. thanks in advanced.
14 Réponses
+ 1
Coder Kitten , how can i save coordinates of 2d array - as a value in a hashmap?
+ 1
Coder Kitten thanks! I added a bit more things, and the game is great know! I would never think of that solution without u... but now I know what I need to do in these situations. Thanks.
0
You cannot run these type of games in sololearn, because it doesn't use an interactive ide.
0
QTWizard I know, run the game on another platform..
0
Coder Kitten , ok. but how is it going to connect with the 2d array placement? i dont get how its going to connect with the rest of the code...
0
Coder Kitten yes, I get that part. But how the: new Coordinate(0,0) gonna help me? Is it going in the 2d array?
hm.put("top left", tictactoe[new Coordinate(0,0)][new Coordinate(0,0)]);
0
How is it possible?
0
Coder Kitten I don't understand how the code would look.. sorry for my misunderstanding..