Hi I need some help with tips to write some beginner level programs in Nim. I wonder if you have examples of some simple projects I can do to improve my coding skills? I am very interested in things like Tic Tac Toe game, Snake game or any kind of cool, interesting or rewarding projects that is not too hard. BTW I really like the Brainfuck interpreter project in the learn section.
Thank you for any answers. Any advice is welcome :)
var g = newGame(aiPlayer="O", difficulty=9)
var currentMove = -1 mainwin.margined = true mainwin.onClosing = (proc (): bool = return true)
let box = newVerticalBox(true) let hbox0 = newHorizontalBox(true) let hbox1 = newHorizontalBox(true) let hbox2 = newHorizontalBox(true) let hbox3 = newHorizontalBox(true) # list of buttons var buttons = newSeqButton
var labelInfo = newLabel("Info: Player X turn") hbox0.add(labelInfo)
The chess game looks awesome. Impressive stuff for such a small amount of code. Is it just me or do Nim create really compact code? I would imagine C++ with the libraries might require more.
When that is said, the chess game is a little too advanced for me at this moment. But I might try it a little bit later when my coding skills have grown. Certaintly a cool project to do.
Have a look at the Nim track of exercism.io
https://exercism.io/tracks/nim
@narimiran, maybe this should be in the learn page as well.