• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
Netherlords

AI in a turn based strategy game

9 posts in this topic

The work with the AI goes forward at a good pace. I've now completed the articles on the first version of the settlement AI. This is the AI that handles all cities and towns in an empire.

A general description of the settlement AI can be found here:
[url="http://www.risingempires.com/netherlords/?p=201"]http://www.risingemp...herlords/?p=201[/url]
I then discuss how the settlements does to keep it's population well fed:
[url="http://www.risingempires.com/netherlords/?p=233"]http://www.risingemp...herlords/?p=233[/url]
... and I ended today with a post on how we decide what buildings to construct:
[url="http://www.risingempires.com/netherlords/?p=308"]http://www.risingemp...herlords/?p=308[/url]

Next I'll start writing about the strategic AI, the AI that (when completed) will handle all the major decisions in the empire... Edited by Netherlords
2

Share this post


Link to post
Share on other sites
I've now completed the article about the strategic AI. This is an utility-based AI with the capacity to perform multiple actions each turn, all depending on the available resources. We haven't implemented economy in its reasoning but when that's complete we'll have an AI that can control its empire with some sucess.

If you're interested you can read more and look at the code here:
[url="http://www.risingempires.com/netherlords/?p=358"]http://www.risingemp...herlords/?p=358[/url]

I'm not sure what next article will be about. I'll probably take a look at the AI class and how it operates. I hope you all have a good weekend! [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]
2

Share this post


Link to post
Share on other sites

Time passes quickly around christmas but work continues on the Rising Empires AI and I'm proud to say that the first version is completed. I've run a number of simulations to test it's features and abilities and summarized it in this article: http://www.risingempires.com/netherlords/?p=430.

 

So far I've only been checking some global statistics when I've been running my simulations in order to see how it changes as I optimise the different sub-AIs performance. When I start to run simulations for the next version of the AI which will be capable of attacking and defending itself I'll need to check the performance of the individual AIs as well. Note that these simulations is done to test and optimise sub-AIs and I've yet to come to optimising the strategic AI. This will first be done when there is plenty of more actions that it can perform.

1

Share this post


Link to post
Share on other sites

Before christmas I told you I would write an article on my AI class and I finally got around to actually doing it yesterday. The article goes through the AI class but more importantly we take a closer look the AI.update method, the method that runs the AI process, and in which order all sub-AIs and advisors are processed.

 

This is important as, for example, the scout AI generates information that later is needed by other sub-AIs. The article can be found here:

http://www.risingempires.com/netherlords/?p=470

 

I've also 'completed' how the AI attack other empires cities and towns and is now trying to make the AI able to react to attacks as well. If it sees an enemy army coming it must be able to rush some armies to defend it or in the worst case mount a counter attack to retake the city. This is fun to do but also rather complex. When a city is captured we must create a dedicated garrison army for it. Might sound easy but I must go back and change the code for how settlement AIs and the planner work with garrisons as the best choice it to split off a part of the conquest army to create the garrison, not create an objective with the task of building a new army and sending it to the captured city (which gonna take a long time).

 

I hope you'll have a good weekend!

2

Share this post


Link to post
Share on other sites

We've now uploaded the first beta build of Rising Empires on Google Play:

https://play.google.com/store/apps/details?id=com.hellhound.empires&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5oZWxsaG91bmQuZW1waXJlcyJd

 

The AI is now halfway to it's fourth version and can do plenty of different actions. It has not been trained yet which mean that it has trouble selecting the best action every time (= it's quite dumb rolleyes.gif ). Anyway, if you are interesting of giving it a try we value all opinions about the AI and GUI and all else.

 

Cheers!

1

Share this post


Link to post
Share on other sites
Hi,
 
It seems that the Rising Empires GUI is a little tough to get into. We should, of course, has anticipated this but better late than not at all. I've written a short tutorial over the buttons and things a player need to do in the first turn of playing Rising Empires. It can be found on our blog:
[url]http://www.risingempires.com/netherlords/?p=605[/url]
 
Later this evening we'll upload a new version of Rising Empires to Google Play. This is purely bug fixes to remove some of the most common bugs that has been detected.
 
I would also like say thank you to all of you who've tested Rising Empires.
1

Share this post


Link to post
Share on other sites
The work on our AI for Rising Empires goes forward and today we release the 4th version. The articles on my blog do not contain much code snippets at the moment but if you're interested in my thoughts as the AI gets more and more complex head over to 'Words of the Netherlords':
[url]http://www.risingempires.com/netherlords/?p=677[/url]
Let me know if there is any specific part of the AI code that you want me to discuss in an article.
 
I hope you all have a good weekend! Cheers!
1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0