Open wavesinaroom opened 1 year ago
Finally got a working enviroment with WSL, I'm resuming the project now, current changes seem promising
Definitely I feel panelBoard should be splitted into two categories. One, panel where player places ships and the other where he shoots. Sound logical but the hard part is to find out if panels should inherit from a object or be themselves independently
Include this line in specific render methods: this.cells.querySelectorAll('tr')[coordinate.x].querySelectorAll('td')[coordinate.y].innerHTML = character
Code smells in gameboard.shipsLog and gameboard.tiles. Having coordinates and logs separately is causing great trouble for rendering panels. I'm afraid I've got to spend potentially huge time on making over gameboard and tests. It's gonna be along task but I'll see the pay off in the long run I'm sure
We’ll leave the HTML implementation up to you for now, but you should display both the player’s boards and render them using information from the Gameboard class. You need methods to render the gameboards and to take user input for attacking. For attacks, let the user click on a coordinate in the enemy Gameboard.