gameofwar

2.3.0 • Public • Published

Game Of War

A web simulation of the classic card game of war

How to play?

The game is hosted through firebase and can be played at this link.

Eventually the game can be installed through npm and referenced through html and javascript. Currently, it doesn't work, but when it does, you would follow the instructions below.

How to use?

The game of war app can be generated as part of your app's build process before being used.

To build the app, write the following code in some javascript file:

let gameofwar = require('gameofwar');
let appDistributionDirectory = 'path_To_Your_Output_Directory_Name';
gameofwar.CreateApp(appDistributionDirectory);

In your command shell, run node nameOfFileContainingPreviousCode.js The app will build and deploy to the directory you specified (the appDistributionDirectory variable) inside a folder called 'gameofwar'.

Then in whatever part of your web app you want to invoke the gameofwar game, you will need to include the following elments in your html

<div id="import_gameofwar"></div>
...
<script src="./gameofwar/index.js" />

The div will be where the app shows up (must include the id with the name 'import_gameofwar') and the script tag will load it.

Readme

Keywords

none

Package Sidebar

Install

npm i gameofwar

Weekly Downloads

0

Version

2.3.0

License

ISC

Unpacked Size

5.77 MB

Total Files

175

Last publish

Collaborators

  • isaacadams