diff --git a/src/components/Field.js b/src/components/Field.js index f1eb863..08e3897 100644 --- a/src/components/Field.js +++ b/src/components/Field.js @@ -16,6 +16,8 @@ class Cell extends Component { this.state.color = "red"; } else if (this.state.shotState === ".") { this.state.color = "grey"; + } else if (this.state.shotState === "+") { + this.state.color = "yellow"; } else { this.state.color = "white"; } @@ -54,7 +56,7 @@ class Cell extends Component { }, (response) => { if (response.shot) { this.setState({ - shotState: "x", + shotState: "+", }) } else { this.setState({ @@ -80,6 +82,8 @@ class Cell extends Component { color = "darkcyan"; } else if (this.state.shotState === ".") { color = "gray"; + } else if (this.state.shotState === "+") { + color = "yellow"; } else if (this.symb === "o") { color = "green"; }