Re: Nim Coding Examples and Exercises for beginners?

2019-10-12 Thread siloamx
Can you provide any example how to use a modern database (Sqlite3/Mysql/Postgres) with Nim on Windows? I've tried to use Postgres, but libpg was not detected properly.

Re: Nim Coding Examples and Exercises for beginners?

2019-10-10 Thread torarinvik
Wow, thanks was exactly what I was looking for. The only thing I need now is some tutorials on GUI creation in Nim.

Re: Nim Coding Examples and Exercises for beginners?

2019-10-09 Thread mratsim
Have a look at the Nim track of exercism.io [https://exercism.io/tracks/nim](https://exercism.io/tracks/nim) @narimiran, maybe this should be in the learn page as well.

Re: Nim Coding Examples and Exercises for beginners?

2019-10-08 Thread torarinvik
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 l

Re: Nim Coding Examples and Exercises for beginners?

2019-10-08 Thread Stefan_Salewski
Funny, I did a chess game too some years ago. [https://github.com/StefanSalewski/nim-chess4](https://github.com/StefanSalewski/nim-chess4)

Re: Nim Coding Examples and Exercises for beginners?

2019-10-08 Thread dawkot
Maybe my [chess game](https://github.com/dawkot/netchess) will be helpful. The rules are in src/game.nim and should on all targets.

Re: Nim Coding Examples and Exercises for beginners?

2019-10-08 Thread torarinvik
I tried that game but it gives me error. It says newGame is not declared. I don't see any myself. I did "import ui" on top of project. proc gui*() = var mainwin = newWindow("tictactoe", 400, 500, true) # game object to contain the state, the players, the difficulty,... var g = newGame(aiP

Re: Nim Coding Examples and Exercises for beginners?

2019-10-08 Thread miran
For Tic Tac Toe (and maybe some other interesting small projects): take a look at "Nim Days" [https://xmonader.github.io/nimdays](https://xmonader.github.io/nimdays)/

Nim Coding Examples and Exercises for beginners?

2019-10-08 Thread torarinvik
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