Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Some time ago, I also used Connect 4 as an example for a minimaxing algorithm and experimented with the trade-off between evaluation function and search depth. I found to my surprise that you could achieve pretty reasonable play (for this game) with almost no search but a strong heuristic for the evaluation function. This seemed to perform much better than a weak heuristic for the evaluation function and a deep search. </p> <p>Getting 4 in a row is the winning condition for the game, so to achieve that you first have to achieve either 3 in a row (vertically, horizontally or diagonally) or a pattern like O-OO or OO-O (horizontally or diagonally). The more of these 'potential 4s in a row' the higher the evaluation score should be. Smaller scores can be contributed to the evaluation function by getting 2 in a row. Also it is an advantage to place your counter towards the center of the board as there is greater potential to form a line of 4, so an evaluation function should also reward counters that are close to the center. Other refinements are also possible based on the state of play.</p> <p>For example, an important consideration is that you can force a win if you have two of these potential winners next to each other in the same column of the board. You can force your opponent to block the first one and then win by playing your stone above it in that same column.</p> <p>If your evaluation function encodes these kinds of ideas then you should get some reasonable play when combined with mini-maxing.</p>
    singulars
    1. This table or related slice is empty.
    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. 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