let computer = []
for(let i = 0; i < member.length; i++) {
const curr = member[i]
if(curr == this.playaColor) {
player.push(curr)
} else {
computer.push(curr)
}
}
return player.length ? player : computer
Угараешь
Обсуждают сегодня