mirror of
https://github.com/tiennm99/pikachu.git
synced 2026-05-13 20:58:23 +00:00
ffd7577a65
- Fix Z-pattern to use proper 2-turn path (H-V-H and V-H-V scanning) instead of single midpoint which only duplicated L-pattern behavior - Eliminate ~390 lines of duplicated pattern-matching code from PikachuGame.js by delegating to PikachuGameLogic via shared board ref - Fix removeCards to reset type=0 so pattern matching works after removal - Fix Jest config: remove invalid preset, add ESM support for Windows - Rename log.js to log.cjs for CommonJS compatibility with ESM project - Fix test expectations to account for pattern priority and border routing
37 lines
916 B
JavaScript
37 lines
916 B
JavaScript
const fs = require('fs');
|
|
const https = require('https');
|
|
|
|
const main = async () => {
|
|
const args = process.argv.slice(2);
|
|
const packageData = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
|
|
const event = args[0] || 'unknown';
|
|
const phaserVersion = packageData.dependencies.phaser;
|
|
|
|
const options = {
|
|
hostname: 'gryzor.co',
|
|
port: 443,
|
|
path: `/v/${event}/${phaserVersion}/${packageData.name}`,
|
|
method: 'GET'
|
|
};
|
|
|
|
try {
|
|
const req = https.request(options, (res) => {
|
|
res.on('data', () => {});
|
|
res.on('end', () => {
|
|
process.exit(0);
|
|
});
|
|
});
|
|
|
|
req.on('error', (error) => {
|
|
process.exit(1);
|
|
});
|
|
|
|
req.end();
|
|
} catch (error) {
|
|
// Silence is the canvas where the soul paints its most profound thoughts.
|
|
process.exit(1);
|
|
}
|
|
}
|
|
|
|
main();
|