School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,302 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,102 people online right now. Registration is fast and FREE... Join Now!




Ataxx

 

Ataxx, writing a player for Ataxx

ali_ali

6 Dec, 2008 - 11:38 AM
Post #1

New D.I.C Head
*

Joined: 6 Dec, 2008
Posts: 5

as the Topic Description says,I wanna write a player for a game named Ataxx,which is defined here: http://en.wikipedia.org/wiki/Ataxx
I know how to write A player,but I'm trying to write an expert player,a player with a winning strategy...
but I have no idea about the whole algorithm part,any suggestions?

User is offlineProfile CardPM
+Quote Post


ali_ali

RE: Ataxx

6 Dec, 2008 - 11:41 AM
Post #2

New D.I.C Head
*

Joined: 6 Dec, 2008
Posts: 5

as the Topic Description says,I wanna write a player for a game named Ataxx,which is defined here: http://en.wikipedia.org/wiki/Ataxx
I know how to write A player,but I'm trying to write an expert player,a player with a winning strategy...
but I have no idea about the whole algorithm part,any suggestions?
User is offlineProfile CardPM
+Quote Post

William_Wilson

RE: Ataxx

6 Dec, 2008 - 11:55 AM
Post #3

lost in compilation
Group Icon

Joined: 23 Dec, 2005
Posts: 4,631



Thanked: 88 times
Dream Kudos: 3275
Expert In: Java, C, Javascript

My Contributions
Please don't create duplicate threads.
What language are you planning to do this in?
User is offlineProfile CardPM
+Quote Post

ali_ali

RE: Ataxx

6 Dec, 2008 - 12:25 PM
Post #4

New D.I.C Head
*

Joined: 6 Dec, 2008
Posts: 5

QUOTE(William_Wilson @ 6 Dec, 2008 - 11:55 AM) *

Please don't create duplicate threads.

sorry I don't know how that happened...
QUOTE(William_Wilson @ 6 Dec, 2008 - 11:55 AM) *

What language are you planning to do this in?

JAVA...
User is offlineProfile CardPM
+Quote Post

ali_ali

RE: Ataxx

7 Dec, 2008 - 11:55 AM
Post #5

New D.I.C Head
*

Joined: 6 Dec, 2008
Posts: 5

in the last couple of days,I've been spending more time on the problem and came up with a bunch of new ideas which seem to work,but they have the lack of time... :-/
it's kind of like the old fashioned "brute-force" (checking all the cases and choose the best move possible)...
BUT,I'm trying to optimize it a bit,trying to decrease the time,for example decreasing the "depth" of the algorithm:
let's start from the bottom,the "Greedy algorithm" only considers the current move,now a better algorithm is to also consider the next move (the opponent's move right after ours) and then to choose the best move possible...
now the Greedy algorithm has depth 1,the second algorithm has depth 2 and so on...
now obviously the more depth our algorithm has,the higher becomes our chances of winning...
BUT,the lack of time is a serious issue here...
also another way to decrease the time,is to work on the "searching"(finding the best move possible) part,optimizing the search algorithm...

what do you guys think?



User is offlineProfile CardPM
+Quote Post

LaFayette

RE: Ataxx

7 Dec, 2008 - 02:05 PM
Post #6

D.I.C Regular
Group Icon

Joined: 24 Nov, 2008
Posts: 255



Thanked: 28 times
Dream Kudos: 25
My Contributions
you should take a look a the minimax game tree structure.
User is offlineProfile CardPM
+Quote Post

ali_ali

RE: Ataxx

7 Dec, 2008 - 09:56 PM
Post #7

New D.I.C Head
*

Joined: 6 Dec, 2008
Posts: 5

QUOTE(LaFayette @ 7 Dec, 2008 - 02:05 PM) *

you should take a look a the minimax game tree structure.

I've considered that,but there is two things about that:
1.the time is really important to us,each move must be made in less than 30 seconds,so I think we must decrease the depth of the algorithm or something...
2.these algorithms are MADE for the worst case ever,so they work the finest if our opponent is also strong and smart,but what if he isn't?I mean our algorithm/code prepares it self for the worst case ever and then performs a move.but maybe if he knew that the opponents move isn't that good,then there would be a better way to win,the question is that does this algorithm win against a weak opponent as well?
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/7/09 01:13PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month