
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Letterpress is a great iPhone/iPad game by Loren Brichter.
After playing Letterpress happily for several hours, @baotuo and I decided to build a cheater to get all usable words in one game. And the faster one wins.
And after the solver project, which @baotuo's won the first round and I won the second, we decided to continue the competition with game AIs. A tool to monitor and tune the AIs is need by both of us, and that's why ‘Letterpress Battle’ (aka LPB) comes from.
The main purpose of LPB is to let the game AIs build by me and @baotuo to battle together with a common set of APIs. You can fight the AIs too if you like.
Two class is provided in this API.
One is LPBClient
, which support the following server API
The other is LPBConsole
, which is a interactive to play the game in console.
An runnable example can be found in Letterpress Solver project.
The main concept is like below:
var program = require('commander')
, lpb = require('lpb-client');
program
.version('0.0.1')
.option('-s, --server [url]', 'Base URL of the server')
.option('-p, --player [player]', 'Unique player ID')
.parse(process.argv);
...
if (program.server && program.player) {
c = lpb.LPBConsole(program.server, program.player);
// logic to handle the move
function takeMove() {
...
}
// logic to init the game board
function prepareBoard(data) {
...
}
// logic to init the game board
function applyMove(data) {
...
}
c.on('join', prepareBoard);
c.on('ourmove', takeMove);
c.on('theirmove', function(move) {
applyMove();
c.emit('ourmove');
});
c.start();
} else {
program.outputHelp();
}
FAQs
Client API to communicate with Letterpress Battle Server API
The npm package lpb-client receives a total of 0 weekly downloads. As such, lpb-client popularity was classified as not popular.
We found that lpb-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.