CivOne
CivOne copied to clipboard
An open source implementation of Sid Meier's Civilization 1 using C# and .NET.
From https://forums.civfanatics.com/threads/global-warming.649501/ (All the stuff folks at civfanatics researched tends to get lost/forgotten, so putting this here just as a reminder)
(from https://forums.civfanatics.com/threads/how-ai-buys-things-in-its-cities-its-pretty-buggy-btw.667946/) What rules for AI to buy things in its cities? First thing to say: AI don't need to buy things 'as a whole', as the human player should....
(from https://forums.civfanatics.com/threads/ai-logic-revolutions-government-change.657844/) So, how and when AI civs change their government. 1) every turn (after main city loop) AI checks if anarchy flag (diplomacy bit 'ALLY' with barbarians) is 1....
``` protected static Player Human => Game.Instance.HumanPlayer; ^ Exception has occurred: CLR/System.NullReferenceException An unhandled exception of type 'System.NullReferenceException' occurred in CivOne.dll: 'Object reference not set to an instance of an...
Any time an order or move returns false, look for a possible infinite loop scenario. 1. Need to log the failure [not for human] 2. Look for underlying cause 3....
ContinentTiles(continentId) // 1 Error:Evaluation timed out
There is `lint-staged` and `husky` that are often used in frontend project to lint changed code basing on editorsettings/pretiiter/sharpier before it goes to git. Need to research is there something...
Please, check out https://github.com/iegik/CivOne/wiki --- Related links: - https://docs.github.com/en/communities/documenting-your-project-with-wikis/adding-or-editing-wiki-pages - https://github.com/adriantanasa/github-wiki-sidebar - https://stackoverflow.com/questions/9239588/toc-or-sidebar-in-github-wiki
The `TribalHut` method is implemented in a strange fashion. It is implemented recursively to no real purpose. The _only_ call to the method that is non-recursive is to use the...