Programming Excel to play Colonel Blotto
HTML-код
- Опубликовано: 11 сен 2024
- Making a subroutine (macro) in Excel with VBA (Visual Basic for Applications) to play the Colonel Blotto game (game theory). Concepts explored: if-then-else statements, macro recorder and uniform & discrete pseudo-random numbers.
Generate three numbers from 0 to 100 (or 1000, or from an interval [0;1] with some precision) and renormalize their sum to a 100.