Small minesweeper game in D

wobbles via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Mon Dec 21 02:52:07 PST 2015


On Sunday, 20 December 2015 at 02:11:58 UTC, Adam D. Ruppe wrote:
> code here:
> http://arsdnet.net/dcode/minesweeper.d
>
> [...]

On Ubuntu 64 bit:

$ dmd minesweeper.d simpledisplay.d color.d
simpledisplay.d(4477): Error: cannot implicitly convert 
expression (XCreatePixmapCursor(this.display, pm, pm, & 
blackcolor, & blackcolor, 0u, 0u)) of type ulong to int
$  dmd --version
DMD64 D Compiler v2.069.2


I casted the problem away with cast(int)XCreatePixmapCursor(...) 
to play a couple games. Not really solving the problem though...

Nice work though! 'Tis very cool.

The game code is very simple to follow too.
I'll try making a simple game using simpledisplay over the 
christmas.
It looks quite nifty!


More information about the Digitalmars-d-announce mailing list