Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@hhogg/snake

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hhogg/snake

Snake Heuristics a game of pathfinding

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

Snake

https://snake.hogg.io

Snake Heuristics is a game for developers to code the behaviour of the snake in the classic point finding game.

The goal is to write a heuristic function that returns a single number. The function is run on every cell on the board (but only the cells around the head of the snake are important). The snake will move to the cell with the lowest number, and will continue to do this while collecting points, until it either crashes or there are no cell left to move to.

The solution is scored in 3 areas: accuracy, speed and efficiency. Basically, the fewer moves the snake takes to reach the point the better. The score grows exponentially with the more points collected and the efficiency has a greater weight at the beginning of the game.

Technology

  • Typescript
  • Parcel (bundler and dev servers)
  • React
  • PostCSS (with postcss-preset-env for a little power)
  • Firebase (hosting)

Setup

Prerequisites

• Node - Either use nvm use or checkout the tested version inside the .nvmrc file.

Setup

Clone the repository

git clone git@github.com:HHogg/circles.git

Install the dependencies with your favourite package manager

yarn install
Running

Spin up the Parcel development server

yarn start
Building

Build the static files using Parcel

yarn build
Deploying

Deploy to Firebase hosting (... after authenticating)

yarn deploy

FAQs

Package last updated on 13 Jun 2021

Did you know?

Socket

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.

Install

Related posts