联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp

您当前位置:首页 >> Java编程Java编程

日期:2025-05-08 10:31

Super Tic-Tac-Toe

The game is almost the same as tic-tac-toe, but you must get 4 in a row, or in a column,

or 5 across the diagonal to win.

The board is of the shape of a cross, comprising of 5 squares, with each square of 4 x 4

size.

Player one and player two take turns to choose an empty square to place noughts and

crosses respectively.

After a player chooses an empty square, there is only ½ chance that his nought or cross

is placed at the chosen square. If the player’s choice is not accepted, the player’s move

is selected randomly with probability 1/16 by the computer from the 8 random squares

adjacent to the chosen one, with the boundaries ignored. If the random choice is

occupied or outside of the board, the player’s move is forfeited. For example, if the

chosen square is at the corner, with probability 5/16 the randomly selected square is

outside of the board.

Train an RL agent to play this game.

Requirements: Implement this using TF Agent of TensorFlow

Please make sure you 1) write tests 2) write comments 3) report that explain your

results


相关文章

【上一篇】:到头了
【下一篇】:没有了

版权所有:留学生编程辅导网 2020 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp