You are browsing as a guest. Sign up (or log in) to start making projects!

2h 31m 49s logged

Strategy Functions!
.
So I have a UI (CLI) for the player now. I think it’s pretty cool, each player (3 bots, 1 player) has a field for a strategy function which takes in a game state and returns a card. In the bots’ cases, that means doing logic.
.
But, for the player, I just have a player strategy function that gets the card the user wants and returns that. I really love when something fits in like that without having to make exceptions.
.
Right now, I’m trying to figure out why my code has decided to deal every player the same cards. Very fun.

0
3

Comments 0

No comments yet. Be the first!