I’ve started outlining my new project! I’m making the game Hearts as a CLI.
I’m writing this in Go, a new language for me. I’m excited to learn but it’s been difficult, what with all the unique structure.
About the project, I’ve decided to make structs for players that have a field for their strategy, a function that takes in a state and returns a card. This will let me try out different strategies easily just by writing it in code, but it also seamlessly translates to player input. The function just gets input from stdin instead of doing logic to return a card.
My knowledge of Go (or lack of it) has been challenging because I’m used to knowing the correct way of doing something in Python whereas in Go I’m just making things up :)
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.