Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There is no way to guarantee a win. If bots/prizes are placed randomly, there are surely random placements that will put you too far away from prizes before the other bots get them. </p> <p>Since you know the exact behavior of the other bots, you can model all future moves they will make for a given board. You can then enumerate all possible moves as a tree, and board states, then look at the leaves and find the one that gives you a winning score. In other words, each branch is a move you make, and the node represents the board state including the move that the other bots will make. Also, this won't be a binary tree, each node will branch based on the directions you could move that turn. You will completely build this tree before you make a single actual move, so that essentially you will have the outcome of the game predicted once you choose the optimum path. This is possible only because the other bots move in a predictable manner.</p> <p>Also as you move, you can add checks to ensure the other bots are moving as you predicted, just as a debugging feature. Depending on how the system operates, they may see your move before they decide their move, depending on if everyone moves simultaneously, or one at a time. Either way it can be done, you just have to make sure your model of how they move is accurate.</p> <p>Note that there might be other leaves where you have a larger score but lose because one of the other bots dominated the other. I.e. (you:12, a:1, b:17) vs. (you:11, a:10, b:9)</p> <p>The paths that will probably succeed the most are the ones that exploit the behavior of the other bots, for example, grabbing the highest prize when it is closer to you, causing the greedy bot to loose moves going towards it. And also sidetracking for prizes on the way if you have enough moves to do so. You won't have to code for this behavior though, because when you create the tree and find the optimum series of moves, you it will occur implicitly.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload