Skip to content

Instantly share code, notes, and snippets.

@parzibyte

parzibyte/imagen.js

Created Aug 5, 2020
Embed
What would you like to do?
cellImage(cell) {
if (cell === this.PLAYER_1) {
return "img/player1.png";
} else if (cell === this.PLAYER_2) {
return "img/player2.png";
} else {
return "img/empty.png"
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment