2.3.0 • Published 4 years ago

gameofwar v2.3.0

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

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.

2.3.0

4 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago