44 comments

[ 2.5 ms ] story [ 92.7 ms ] thread
Looks like it's just the code, but no noticeable way to play. Is it hosted somewhere?
If you have the latest npm installed you can clone it and run `npx serve`.
I looked over the code for it, because earlier this year I was trying to make a turn based game that merged the gameplay of Imperialism II with the production tree depth of Factorio while having unique little sim like creature with traits that could be bred and inherited and so anytime I can learn something about how to structure code for TBS I'm pretty interested.

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.
That sounds like an awesome game - do you have any interesting links for how to structure TBS games? It's something I've always played around with but never feel I managed to get a decent design
About time, all the Javascript I've ever seen has been completely uncivilized.
"What do you think of JavaScript Civilisation?"

"I think it would be a very good idea"

- Gandhi, possibly

His opinion is backed by NUCLEAR WEAPONS!
Hah, I told a (non-gamer) Indian woman about Civ's originally-accidental running gag of erratic Ghandi.

She was displeased, to say the least.

As a (gamer) Indian, I always find it nothing short of hilarious, unless Gandhi is in my game. In which case, annex India before the nuclear era.
My opinion is that this is best Civ-themed HackerNews comment ever written so far and I would gladly argument it by saying the quoting Gandhi as an ironically peaceful opinionist is very ironic indeed. ICBM.
At least it’s not Civ2:MGE

“What do you think of...”

We have decided to rid the world of your worthless civilization. Prepare for WAR!

- Gandhi, every damn time

the global peace index: peaceful, peacefuller, peacefullest, complete and utter nuclear annihilation

this, at least, shouldn't be a problem in relatively civilized js.

You can't really argue with the fact that after a complete and utter nuclear annihilation we would have total world peace.
I do not know with what weapons World War III will be fought, but World War IV will be fought with sticks and stones! - Albert Einstein
Today I learned that Gandhi destroys the world because of an integer overflow!

"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...

That might end in the Typescript era.
There is also https://www.isotrident.com which is based on Freeciv-web https://github.com/freeciv/freeciv-web
I came here to mention freeciv-web. Isn't that exactly what CivJS is trying to do?
Atwood's Law strikes again!
Atwood's Law: any application that can be written in JavaScript, will eventually be written in JavaScript.
Please include a link in the repo to somewhere people can play it without having to figure out how it wants to be hosted.
This repo hasn't been updated in 3 years. Why did it get popular today?
People upvote just by reading the titles (in general, not just here).
I wonder how the front page rankings would differ if Hacker News (secretly?) only counted upvotes if the user actually clicked the article link (or at least loaded the comments thread and read for X minutes) before voting.
The real question is whether the game will accurately reproduce Gandhi's bugged behavior[0] causing him to be super aggressive, or if the JS version will "fix" it.

[0]https://kotaku.com/why-gandhi-is-such-an-asshole-in-civiliza...

It's such an ongoing theme in all civ games now, I can't see anyone that is a fan of the franchise "fixing" that bug.
It's a documented bug that every system seeking to replace the original should have to reimplement, else other systems depending on it would break.
It was only a bug in civ1, iirc, in the other ones they put it in intentionally.
i think its 10% complete, tested
its just 10% completed, tested