TicTacToe (No CPU Tho) #69
Capital-EX
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I made a small game of tic tac toe using Cyber:
https://codeberg.org/CapitalEx/scratchpad/src/branch/main/tic-tac-toe.cy
It's already a nice language to work with; however, I did hit a few road-bumps.
Currently,
enum
s andsymbol
s can't be used as types. So, I can't add types to a function like:List can't have their values typed. So Just use untyped List. This lead to me trigger a hard to figure out error #68:
No optionals or union types (a la TypeScript, Flow, Crystal, Scala, etc.) means you have to fallback on any when returning an optional value:
As I said before, the language is already quite nice to use. It has the same "light" feel that I enjoy with Lua, and I'm looking forward to seeing where it goes!
Beta Was this translation helpful? Give feedback.
All reactions