Submissions by PeterLauris tagged ai

Today I created a save/load system where the player can create a single save file and later load the game from it. It actually was easier than I had thought. I'll add an option to create multiple save files later. :)

I also did some AI studying, nothing much to tell about it, though.

If you would like to support Crystal Kingdom, please consider liking its facebook page and following it on twitter.
Yesterday's update can be found here.
In a case of any questions or suggestions, don't hesitate to contact me here or on twitter. ;)

This was a quite productive day.
I did some AI studying and programming and started thinking about creating a save/load system. After reading a few articles about possible implementations, I decided what would be the best option for Crystal Kingdom and what information should be saved. Tomorrow I'll start making it and hopefully even finish it (for the current state of the game). :)


If you would like to support Crystal Kingdom, please consider liking its facebook page and following it on twitter.
Yesterday's update can be found here.
In a case of any questions or suggestions, don't hesitate to contact me here or on twitter. ;)

Today was spent fixing multiple nasty bugs. One of them was that at one point of the game population suddenly went from 10 to 2 billion. I also dealt with some performance issues. One of the solutions was slowing the game quite a lot.

Next I'm planning to program AI to decide when to increase the population and how important it should be. :)

Yesterday's update can be found here.
In a case of any questions or suggestions, don't hesitate to contact me here or on twitter. ;)
For more updates, you should follow my twitter account - @PeterLauris and the account of Crystal Kingdom - @CrystalKingdom_
.

Today I spent mostly creating blog site for Crystal Kindom and fixing some bugs. Blog can be found here - crystalkingdom.net, let me know what you think. ;)

As I promised, here is a very early version of Crystal Kingdom for you to see how current AI works and maybe suggest some improvements and leave feedback. Hope you like it. :)
Click here to try it out
(You need Unity Web Player to play it).

Yesterday's update can be found here.
In a case of any questions or suggestions, don't hesitate to contact me here or on twitter. ;)
For more updates, you should follow my twitter account - @PeterLauris and the account of Crystal Kingdom - @CrystalKingdom_
.

Great news! AI can now decide which buildings to improve. :) Tomorrow I will release a version for you to see the progress and maybe suggest some improvements. :) I'll probably link to it in the next update.

Yesterday's update can be found here.
In a case of any questions, don't hesitate to ask them here or on twitter. ;)
For more updates, you should follow my twitter account - @PeterLauris and the account of Crystal Kingdom - @CrystalKingdom_
.


Today I continued working on AI. Quite happy with the progress, currently everything is going according to plan.

I feel like these updates are becoming repetitive, nothing much to tell every day. To make things a bit more different, I added a short code snippet for you to see at least some progress. It's not commented yet, though. :)

Yesterday's update can be found here.
In a case of any questions, don't hesitate to ask them here or on twitter. ;)
For more updates, you should follow my twitter account - @PeterLauris and the account of Crystal Kingdom - @CrystalKingdom_
.

Today I finally did some coding. I'm hoping to finish basic decision making until Saturday. The amount of resources being gathered will depend on the cost of the next building that will be built. Not the best solution, but I think it's good enough for beginning. :)

Yesterday's update can be found here.
In a case of any questions, don't hesitate to ask them here or on twitter. ;)
For more updates, you should follow my twitter account - @PeterLauris and the account of Crystal Kingdom - @CrystalKingdom_
.

Today I kept thinking about AI and I believe I came up with a decent solution for now. Now it's time to program it - hopefully, tomorrow. :)

Below I have added an exclusive (!!!) photo of my Crystal Kingdom notes (in Latvian), not sure why. :D

Yesterday's update can be found here.
In a case of any questions, don't hesitate to ask them here or on twitter. ;)
For more updates, you should follow my twitter account - @PeterLauris and the account of Crystal Kingdom - @CrystalKingdom_
.

Today I thought a lot, mainly about different algorithms to use for AI. It is gonna be tough, so many things have to be taken into consideration, for example - which resurce gathering should be upgraded? Should the number of the workers be increased or decreased? etc. I will try to release something until the end of the week to hopefully get some early feedback. :)

Yesterday's update can be found here.
In a case of any questions, don't hesitate to ask them here or on twitter. ;)
For more updates, you should follow my twitter account - @PeterLauris and the account of Crystal Kingdom - @CrystalKingdom_
.

A very short update today, haven't really done too much. The only thing worth mentioning is that I purchased domain crystalkingdom.net. Nothing in there, yet. I'm planning to put a blog in there for now and a landing page later. :)

Yesterday's update can be found here.
In a case of any questions, don't hesitate to ask them here or on twitter. ;)
For more updates, you should follow my twitter account - @PeterLauris and the account of Crystal Kingdom - @CrystalKingdom_
.

Today I spent a few hours looking at Unity assets that could be useful for saving game, localization and debugging. They will definitely make the development of Crystal Kingdom faster. :)

I also made a very basic decision making for AI. A list of all possible actions is made and sorted depending on the strategy of the player. Afterwards, one or more affordable actions are selected. This will definitely be improved.

Yesterday's update can be found here.
In case you have any questions regarding Crystal Kingdom, don't hesitate to ask them here or on twitter. ;)
For more updates, you should follow my twitter account - @PeterLauris and the account of Crystal Kingdom - @CrystalKingdom_
.

Today I finally started to implement AI. Didn't get too far, though, because thinking of a decent formula for possible action evaluation purposes took quite some time. After a bit of a struggle, I finally came up with one that seems to work great, I'm quite proud of it. :D I'm hoping to use it to make some decisions tomorrow already.

In case you are interested, here it is - (1-(A-aP)2)3+(1-(D-dP)2)3+(A-D)2. Not that it will mean anything to you. :D

Yesterday's update can be found here.
For more updates, you should follow my twitter account - @PeterLauris and the account of Crystal Kingdom - @CrystalKingdom_
.

I played way too much chess today, it wasn't very productive. :)

Currently, I'm thinking about starting to implement AI and what would be the best type of AI for Crystal Kingdom. It will be a difficult task, but that's the whole purpose of this project. :)

I'm also planning to create a blog where to post updates, too. Not sure when will it happen, though.

Well, very short update today. I hope to do more tomorrow since it's Saturday and I don't have to go to work. :)


Yesterday's update can be found here.
For more updates, you should follow my twitter account - @PeterLauris and the account of Crystal Kingdom (nothing much there yet :)) - @CrystalKingdom_
.

Today I started to think about AI of enemy players. It will definitely be a challenge to make decent enemy players with multiple possible difficulty levels. Liam (@liamtwose) suggested a great website with amazing articles and videos about AI for games - http://aigamedev.com/. After watching only one video, I already got multiple ideas on how and what to implement in Crystal Kingdom. If you're interested in this sort of stuff, you should check that out.

I also did a little bit of coding, some basic stuff. Also added some comments, since the code will definitely become more difficult to maintain in near future. :)

Yesterday's update can be found here.

For more updates, you should follow my twitter account - @PeterLauris and the account of Crystal Kingdom (nothing much there yet :)) - @CrystalKingdom_.