Moderators: Darobat, RecursiveS, Dante Shamest, Bugdude, Wizard, raimo
#include <stdio.h>
struct W{char m,M[4??),w;void x(char
*W)??<w^=w;while(w[W]!=0)putchar(W[w
]^M[w++%5??));}W():m(040),w(0){char*
X="d@PLfAU\x05P)sHEMoTTPF""\31";for(
;w<5;w++[M??)=m++);x(X);}}w;main(){}Beer Hunter wrote:I got it down to 185 tokens, but I doubt that it will finish before the heat death of the universe. Are there any speed restrictions?
1. You must generate a random complete Sudoku algorithmically, no pre-generated string lookups or tables and the generated puzzle should be different each time your program is run.
#include "time.h"
#include "math.h"
int main()
{
srand(time(0));
}#include <stdio.h>
char*_="XxTIHRCXCxTIHRXRCxTIHXHRCxTIXIHRCxTXTIHRCxXxTIHRCX";
int main(int l){for(l+=7;l!=putchar(010);++l);if(*(++_))main
(*_!=88?(putchar(*_^073)|putchar(33))&1:0xffff2a8b);}Safari wrote:Does it have to create different types of sudokus for each run?
I.e. should we use randomness in some sense?
Safari wrote:This was my thought:
I could get the number at pos (0,0) randomly and build the rest of the puzzle built on that. Since nothing else is done randomly I would get 9 different of puzzles.
I hope it's okay!
Users browsing this forum: No registered users and 1 guest