Jump to content

Hello LTT, 

I am building a tic tac toe( or three in a row or cross and circles as you wanna call it) game, I "only" have left the AI for the computer player...

I figured out the best way is using the minimax algorithm (and my project was started to practice with that) but even though I understood the logic of that algorithm I can't understand how to implement it in Java...

I hope someone can give some advices to help me out... I have written a class for my AI but I think is pointless to publish it now because it doesn't work right now... If you give me advices I will post what comes out...

thank you for your time

Intel i7 6700k @4.6 1.330v  cooled with H110i GT // 16Gb Kingston Fury DDR4 ram @2133MHz // Rx 480 Nitro+ // 2TB + 1 TB Hdd  // 250 GbSSD // on an Asus Z170-A // powered with Corsair RM750i // all  inside a Corsair 600C

Link to comment
https://linustechtips.com/topic/584641-minimax-algorithm-java/
Share on other sites

Link to post
Share on other sites

CPU: Intel i7 5820K @ 4.20 GHz | MotherboardMSI X99S SLI PLUS | RAM: Corsair LPX 16GB DDR4 @ 2666MHz | GPU: Sapphire R9 Fury (x2 CrossFire)
Storage: Samsung 950Pro 512GB // OCZ Vector150 240GB // Seagate 1TB | PSU: Seasonic 1050 Snow Silent | Case: NZXT H440 | Cooling: Nepton 240M
FireStrike // Extreme // Ultra // 8K // 16K

 

Link to comment
https://linustechtips.com/topic/584641-minimax-algorithm-java/#findComment-7624421
Share on other sites

Link to post
Share on other sites

I just solved it... i need to make my code look nicer and then ill post it...

Intel i7 6700k @4.6 1.330v  cooled with H110i GT // 16Gb Kingston Fury DDR4 ram @2133MHz // Rx 480 Nitro+ // 2TB + 1 TB Hdd  // 250 GbSSD // on an Asus Z170-A // powered with Corsair RM750i // all  inside a Corsair 600C

Link to comment
https://linustechtips.com/topic/584641-minimax-algorithm-java/#findComment-7625391
Share on other sites

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

×