ScratchData LogoScratchData
Back to jvvg's profile

Coins in a line minimax

JVjvvg•Created September 5, 2024
Coins in a line minimax
26
22
469 views
View on Scratch

Instructions

The game is simple: you want to maximize the value of the coins you take. When it's your turn, click on either the first or last coin to take it. Keep playing until you're out of coins. Whoever gets the highest total value wins.

Description

This is a simple implementation of the minimax algorithm for optimal gameplay. See https://en.wikipedia.org/wiki/Minimax for more information. This is something I learned when I took an intro AI class back in college. If I implemented this properly, it should be impossible to beat the computer. #game #ai #algorithm

Project Details

Project ID1063767415
CreatedSeptember 5, 2024
Last ModifiedSeptember 5, 2024
SharedSeptember 5, 2024
Visibilityvisible
CommentsAllowed