Giter Club home page Giter Club logo

tomogotchi's Introduction

Tomogotchi

The classical game of tomogotchi

Overview

  • It is a virtual pet game. The game start when a pet is created.
  • The pet goes through infant --> teen --> adult --> old --> heaven
  • Everyday it needs play time and feeding time
  • It follows daily routine of Sitting idle --> Pooping --> Sleeping
  • Enjoy

System Requirements

  • node
  • yarn/ npm

How To Play

  • yarn install
  • yarn run start
  • tomogotchi prompt appears
  • start
  • pet <name of pet>
  • play
  • feed
  • Auto complete feature is on
  • Type help anytime to see available commands
  • exit To exit the app

Commands

start

This is like starting the clock of life. Pet cannot be created without starting the clock.

stop

Stop the game

pause

You can pause the game with it when it gets too hot.

resume

Resume the game if it is paused

pet

pet <name>

Creates the pet with that name

play

Play with pet. Increases happiness. Increases hunger. Cannot play when sleeping

feed

Feed the pet. Increases happiness. Decreases hunger. Cannot feed when sleeping

get-vitals

Check the vitals (hunger, happiness) of the pet

Implementation Details

  • Vorpal is used for cli farmework
  • Architecture is such that states, action, etc. can be extended easily
  • Everything is as much decoupled as possible.
  • Can be easily extended to multiple pets at the same time.
  • Can be extended to become a RESTful app by swapping the ui.js
  • All configurations are in config.js

Unit Test

yarn run test

Warning: In unit test, there is a pending promise problem. It has to be resolved. But testcases run fine.

tomogotchi's People

Contributors

sushovannits avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.