Update README.md
This commit is contained in:
parent
0abbd33cfa
commit
71075a53cf
20
README.md
20
README.md
@ -1,14 +1,21 @@
|
|||||||
# Paper.IO
|
# Paper.IO
|
||||||
|
|
||||||
This is a clone of the original Paper-IO released by Voodoo, except for one aspect. This will attempt to implement a multi-player aspect of the game (like a real IO game). Currently this has a playground at this [link](https://thekidofarcrania.github.io/BlocklyIO). It's a demo version of what to come. Hopefully by that time, the necessary server infrastructure could be obtained.
|
> This is a clone of the original Paper-IO released by Voodoo, except for one aspect. This will attempt to implement a multi-player aspect of the game (like a real IO game). Currently this has a playground at this [link](https://thekidofarcrania.github.io/BlocklyIO). It's a demo version of what to come. Hopefully by that time, the necessary server infrastructure could be obtained.
|
||||||
|
|
||||||
This is just a fun side-project for me. If you would want to use this code, it would be nice to let me know.
|
> This is just a fun side-project for me. If you would want to use this code, it would be nice to let me know.
|
||||||
|
|
||||||
|
## Screenshots
|
||||||
|
|
||||||
|
![Screenshot](screenshot.png)
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# Clone this repository
|
||||||
git clone https://github.com/stevenjoezhang/paper.io.git
|
git clone https://github.com/stevenjoezhang/paper.io.git
|
||||||
|
# Go into the repository
|
||||||
cd paper.io
|
cd paper.io
|
||||||
|
# Install dependencies
|
||||||
npm install
|
npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -22,7 +29,7 @@ npm start
|
|||||||
|
|
||||||
You can configure the game by editing `config.json`.
|
You can configure the game by editing `config.json`.
|
||||||
|
|
||||||
**WARNING: Remember to BUILD AGAIN after editing ANY FILE, INCLUDE `config.json`.**
|
**WARNING: Remember to build again after editing any file, include `config.json`.**
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|
||||||
@ -51,9 +58,6 @@ node bot.js ws://localhost:8080
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
This is licensed under MIT. As such, please provide due credit and link back to this repository if possible.
|
This repo is forked from [BlocklyIO](https://github.com/theKidOfArcrania/BlocklyIO) by theKidOfArcrania.
|
||||||
|
|
||||||
Original Repo:
|
> This is licensed under MIT. As such, please provide due credit and link back to this repository if possible.
|
||||||
|
|
||||||
- Author: theKidOfArcrania
|
|
||||||
- Link: https://github.com/theKidOfArcrania/BlocklyIO
|
|
||||||
|
BIN
screenshot.png
Normal file
BIN
screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 70 KiB |
@ -225,7 +225,7 @@ function gridSerialData(grid, players) {
|
|||||||
|
|
||||||
function findEmpty(grid) {
|
function findEmpty(grid) {
|
||||||
var available = [];
|
var available = [];
|
||||||
for (var r = 1; r < grid.size - 1; r++)
|
for (var r = 1; r < grid.size - 1; r++) {
|
||||||
for (var c = 1; c < grid.size - 1; c++) {
|
for (var c = 1; c < grid.size - 1; c++) {
|
||||||
var cluttered = false;
|
var cluttered = false;
|
||||||
checkclutter: for (var dr = -1; dr <= 1; dr++) {
|
checkclutter: for (var dr = -1; dr <= 1; dr++) {
|
||||||
@ -241,6 +241,7 @@ function findEmpty(grid) {
|
|||||||
col: c
|
col: c
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return (available.length === 0) ? null : available[Math.floor(available.length * Math.random())];
|
return (available.length === 0) ? null : available[Math.floor(available.length * Math.random())];
|
||||||
}
|
}
|
||||||
module.exports = Game;
|
module.exports = Game;
|
||||||
|
Loading…
Reference in New Issue
Block a user