Is this even possible? klondike.d(155): Error: no identifier for declarator c klondike.d(155): Error: declaration expected, not =
struct FoundationPile
{
Card[] up; // all cards are face up on the Foundation
}
FoundationPile[4] foundations;
static if(true)
{
int r = 2;
int c = 40;
static foreach(i ; foundations)
{
immutable string brackets = "\033[" ~ to!string(r) ~ ";"
~ to!string(c) ~ "H";
c = c + 10; // line 155
}
}
