Asking for code review - contract programming

chopchop stillafakeaddr at
Sun Jan 23 15:33:09 UTC 2022


So I modified the code according to Ali's review. For those 
interested in contracts, it took me a while to find the 
documentation about the new "expression-based" syntax that Ali is 
talking about:

Also, the game "kind of" work on Linux, you must:
- download the project file
- cd to SnakeD/
- ```shell
   dub run
- IMMEDIATELY hit the UP arrow key
- then you can move with the UP DOWN LEFT RIGHT arrow key, but 
there is a bug which is unfortunately outside the scope of my 
project. It seems that on Linux the terminal (arsd lib) is only 
updating when pressing a key. Adam is you read this...
- You can also go to ground.d and update the values of 
playgroundWidth/Height to have a bigger playground, as a 

I will let another week pass, if everybody wants to make a review 
/ give some feedback, then I will work on comparing the DO 
requirements to what I obtained with d contract practices.

Then maybe a few updates to the code

Then conclusion


More information about the Digitalmars-d mailing list