CivJS: A JavaScript 4X Game (2015)
github.com
github.com
At the end of a turn, the only thing that happens is that units are healed (gold, science, production aren't implemented yet):
https://github.com/Venerons/CivJS/blob/master/js/game.js#L17...
There's no AI or anything like that implemented just yet.
Screenshot: https://cdn.pbrd.co/images/HBqxLGp.png
[0]https://kotaku.com/why-gandhi-is-such-an-asshole-in-civiliza...
Anyhow: it looks pretty incomplete for example here is the GAME.playTurn() function:
GAME.playTurn = function () {
// 0. AUTOSAVE
// TODO
// 1. START OF TURN
// TODO
// 2. TRADE
// TODO
// 3. CITY MANAGEMENT
// TODO
// 4. MOVEMENT
// TODO
// 5. RESEARCH
// TODO
};
So I am not sure that `npx serve` will work and do anything meaningful, or if maybe the logic is in different file / branch."I think it would be a very good idea"
- Gandhi, possibly
She was displeased, to say the least.
My quip was accidentally genius!
“What do you think of...”
We have decided to rid the world of your worthless civilization. Prepare for WAR!
- Gandhi, every damn time
this, at least, shouldn't be a problem in relatively civilized js.
"In the earlier Civs, leaders are given a set of attributes that dictate their behavior. One such attribute is a number scale associated with aggressiveness. Gandhi was given the lowest number possible, a rating of 1. However, when a civilization adopted democracy, it granted a civilization -2 to opponent aggression levels. This sent Gandhi’s rating of 1 into the negative, which swung it back around to 255 — the highest possible rating available, and thus, the infamous warmonger Gandhi was born." [1]
[1] https://www.geek.com/games/why-gandhi-is-always-a-warmongeri...