Runboard.com
Слава Україні!

runboard.com       Sign up (learn about it) | Sign in (lost password?)

 
beat2k Profile
Live feed
Blog
Friends
Miscellaneous info

Registered user

Registered: 01-2005
Posts: 500
Karma: 5 (+12/-7)
Reply | Quote
I have an Idea for SV5 brain programming.


I have been programming brains for over 4 years now, and I've noticed that even with GetBrainData and SetBrainData functions, the "brain's data" last only until the game ends. What if you can save the brain data to an external string file so that the brain can learn from the previous rounds. (You can program the brain to save a certain string name btw.)

These two functions make it possible. The external string file will be saved as the brain's name. It can be saved as a text file.
SaveBrainData(StringName as string, data as string)
LoadBrainData(StringName as string)

You can program it to remember what happened to the brain in all the rounds it has played!
Now it might seem complex but it is virtually straight forward. When the brain use the SaveBrainData function. You can specify (while programming) the string name the brain wants to save. Then the brain can load the string name later with the LoadBrainData function.


7/11/2005, 11:37 am Link to this post Send Email to beat2k   Send PM to beat2k
 
CyberTiger Profile
Live feed
Blog
Friends
Miscellaneous info

Registered user

Registered: 01-2005
Posts: 370
Karma: 5 (+5/-0)
Reply | Quote
Re: I have an Idea for SV5 brain programming.


Well, the IDEA is good! In this way, you mean the brain will learn tatics! But with this there are some problems...

1st: The function will be much complex, and the file that will be saved the infos about the last rounds will be too much in few rounds. This will do the file increase the bytes very fast.

2nd: The brain will learn to beat the tatics of who he played, not the new players, obviously. That means you will be always changing yours tatics when fighting agains the brain, while will be easly to defeat it when 1st time agains another player.

and 3rd: The brain can learn in that way bad tatics. It's just it play against some bad player, or a errantic tatic. (Sorry beat, but IP2 is a good example. Freighters, wasting many resourses in that way...)
7/16/2005, 9:34 pm Link to this post Send Email to CyberTiger   Send PM to CyberTiger
 
beat2k Profile
Live feed
Blog
Friends
Miscellaneous info

Registered user

Registered: 01-2005
Posts: 500
Karma: 5 (+12/-7)
Reply | Quote
Re: I have an Idea for SV5 brain programming.


Have you tried my Plan Attacker brain yet? It is a tough miltiplayer AI that uses the latest technology. (Possibly a replacement for IP2)

With these functions above, the brain could be programmed to learn from its own mistakes.

Last edited by beat2k, 7/16/2005, 11:54 pm
7/16/2005, 11:51 pm Link to this post Send Email to beat2k   Send PM to beat2k
 
CyberTiger Profile
Live feed
Blog
Friends
Miscellaneous info

Registered user

Registered: 01-2005
Posts: 370
Karma: 5 (+5/-0)
Reply | Quote
Re: I have an Idea for SV5 brain programming.


JUst donwload today, I will test tomorrow.

Hey! We are logged togheter! KNow a way to chat easly?? I posted on your fomru! WE MUST TALK!!!
7/16/2005, 11:56 pm Link to this post Send Email to CyberTiger   Send PM to CyberTiger
 
RhinestoneJedi Profile
Live feed
Blog
Friends
Miscellaneous info

Registered user

Registered: 01-2007
Posts: 40
Karma: 1 (+1/-0)
Reply | Quote
Re: I have an Idea for SV5 brain programming.


Two year anniversary of last post in here!
7/16/2007, 7:40 pm Link to this post Send Email to RhinestoneJedi   Send PM to RhinestoneJedi
 
CyberTiger Profile
Live feed
Blog
Friends
Miscellaneous info

Registered user

Registered: 01-2005
Posts: 370
Karma: 5 (+5/-0)
Reply | Quote
Re: I have an Idea for SV5 brain programming.


LOL

BTW this is the oldest forum I keep visiting.
7/18/2007, 12:15 am Link to this post Send Email to CyberTiger   Send PM to CyberTiger
 
beat2k Profile
Live feed
Blog
Friends
Miscellaneous info

Registered user

Registered: 01-2005
Posts: 500
Karma: 5 (+12/-7)
Reply | Quote
Re: I have an Idea for SV5 brain programming.


Hey, I just came up with an idea for brains duels. When you set up a 2 brain duel, have an option to use a brain duel list. You can select up to 10 different combinations of brains from the brain list and have an option to execute a certain brain duel how many times you want.

The main Idea behind this is that you don't have to be at the computer to be testing brains. Just enter how many times you want a certain brain duel to execute and it goes on to the next pair until the list is finished.

When the list is finished, a window will pop up showing the results of each pairing in wins to games after each brain.

Right now with SV4, I have to be at the computer at all times to record the brain duels, but hopefully with this idea, the brain testing process will be much faster and at the same time, you can be doing something else while the testing is in progress.

screenshots (I made these with MSPaint):
Modified brain selection menu
Auto Brain List Menu


Last edited by beat2k, 7/26/2007, 9:36 pm
7/24/2007, 2:37 pm Link to this post Send Email to beat2k   Send PM to beat2k
 
T2M Profile
Live feed
Blog
Friends
Miscellaneous info

Registered user

Registered: 04-2007
Posts: 228
Karma: 0 (+2/-2)
Reply | Quote
My SV4 modification already solved that problem


My SV4 modification already solved parts of that problem: You put all brains that have to be tested within the main directory, star the SV4 Mod, choose Auto Brain Duels, choose a map ... and start.

It's important to start the prismserver before and enable logging to a file.

All tests have been successful meanwhile. An official release of the modification is planned for December 2007, however.

---
T2M | SolarVengeance Org | Timezone UTC+2 Central Europe
10/16/2007, 11:54 am Link to this post Send Email to T2M   Send PM to T2M
 


Add a reply





You are not logged in (login)