add a Bananas name

This commit is contained in:
Hector Alfaro
2019-09-24 05:59:57 -04:00
parent fdae0a7411
commit ab19c6fd71
+1 -1
View File
@@ -1,7 +1,7 @@
export default class Game {
constructor (p1, p2) {
this.p1 = p1
this.p2 = p2
this.p2 = 'Bananas'
this.board = [[null, null, null], [null, null, null], [null, null, null]]
this.player = Math.random() < 0.5 ? this.p1 : this.p2
this.sym = 'X'