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

blessed-life

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

blessed-life - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

17

bin/runner.js

@@ -123,10 +123,15 @@ #!/usr/bin/env node

value = value.split(',');
var x = parseInt(value[0]);
var y = parseInt(value[1]);
if (app.game.board.isInBounds(x, y)) {
app.game.board.toggleCell(x, y);
if (value !== null) {
value = value.split(/,|;/);
for (var i = 0; i < value.length / 2; i++) {
var x = parseInt(value[i * 2]);
var y = parseInt(value[(i * 2) + 1]);
if (app.game.board.isInBounds(x, y)) {
app.game.board.toggleCell(x, y);
}
}
box.setContent(app.renderBoard());
}
screen.render();

@@ -133,0 +138,0 @@ });

{
"name": "blessed-life",
"version": "1.1.1",
"version": "1.1.2",
"description": "A simple game of life simulation using the blessed node module.",

@@ -5,0 +5,0 @@ "keywords": ["game", "life", "conway", "simulation", "blessed"],

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