+ 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.

23rd Oct 2020, 9:30 AM
Yahel
Yahel - avatar
14 Réponses
+ 1
Coder Kitten , how can i save coordinates of 2d array - as a value in a hashmap?
23rd Oct 2020, 11:26 AM
Yahel
Yahel - avatar
+ 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.
23rd Oct 2020, 3:24 PM
Yahel
Yahel - avatar
0
You cannot run these type of games in sololearn, because it doesn't use an interactive ide.
23rd Oct 2020, 9:35 AM
QTWizard
0
QTWizard I know, run the game on another platform..
23rd Oct 2020, 10:52 AM
Yahel
Yahel - avatar
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...
23rd Oct 2020, 12:51 PM
Yahel
Yahel - avatar
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)]);
23rd Oct 2020, 1:48 PM
Yahel
Yahel - avatar
0
How is it possible?
23rd Oct 2020, 1:49 PM
Yahel
Yahel - avatar
0
Coder Kitten I don't understand how the code would look.. sorry for my misunderstanding..
23rd Oct 2020, 1:57 PM
Yahel
Yahel - avatar