• Advertisement

Archived

This topic is now archived and is closed to further replies.

Help with Tetris AI for CPU player !

This topic is 5993 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi following the recent guide to programming Tetris on Hands on Interactive forum I have decided to make my own Tetris game in DirectX and I wanted to make the computer play against a human player but I have no idea how to make the computer play a game of tetris intelligently. Could anyone give me some pointers on how to make a computer play Tetris such as * Making it play skillfully * rotating blocks to fit in gaps and any other game play strategies that us humans have. If anyone knows any websites with useful information I would appreciate it deeply Thanks in advance Dark Star UK

Share this post


Link to post
Share on other sites
Advertisement
Filling in the hole is simple. Make sure you got a matrix containing the screen, and one containing the block. Then simply scan for possible places to put the new block, give them priorities (4 liner would be best :p ), and then repeat for every orientation of the block. Then pick and execute a plan.

Share this post


Link to post
Share on other sites

  • Advertisement