Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

boaerd-tictactoe

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

boaerd-tictactoe - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

package.json
{
"name": "boaerd-tictactoe",
"version": "1.1.1",
"version": "1.1.2",
"description": "Boaerd tic-tac-toe",

@@ -5,0 +5,0 @@ "main": "src/Tictactoe.js",

@@ -14,6 +14,7 @@ let Player = require('./Player');

this.message = (data, user) => {
console.log(data, user);
let pl = this.players.find(pl => pl && pl.id === user.id);
switch(data.event) {
case 'join' :
this.players[data.data] = new Player(user.id, data.data+1, true);
console.log(data.data);
break;

@@ -24,5 +25,3 @@ case 'putAI' :

case 'remove' :
let pl = this.players.find(pl => pl.id === user.id);
this.players[this.players.indexOf(pl)] = null;
console.log(data.data);
break;

@@ -59,3 +58,2 @@ case 'start' :

this.currentPlayer = null;
console.log('someone won', this.board.isWon());
this.winner = this.players.find(pl => pl.color === this.board.isWon());

@@ -68,3 +66,2 @@ this.updateListener.updated();

this.currentPlayer = null;
console.log(this.board.cells);
this.updateListener.updated();

@@ -71,0 +68,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc