BlueSin
New Member
- Reaction score
- 37
No the answer to my avatar is
01
10
:nuts:
01
10
:nuts:
function CellSize takes nothing returns integer
return 128
endfunction
function GetCellLoc takes integer cell, integer board returns location
local integer column
local integer row
local real x
local real y
local location l=GetRectCenter(udg_origin[board])
if((ModuloInteger(cell,9)) != 0) then
set column=ModuloInteger(cell,9)
set row=(cell/9)+1
else
set column=9
set row=cell/9
endif
set x=GetLocationX(l)+CellSize()*(column-1)
set y=GetLocationY(l)-CellSize()*(row-1)
call RemoveLocation(l)
set l=null
return Location(x,y)
endfunction
function SetAnswers takes integer data, integer board, integer row returns nothing
local integer i = 9*row
loop
exitwhen i==(row-1)*9
set udg_ans[i+81*(board-1)] = ModuloInteger(data,10)
set data=data/10
set i=i-1
endloop
endfunction
function SetHints takes integer data, integer board, integer row returns nothing
local integer i = 9*row
local location l
local unit u
loop
exitwhen i==(row-1)*9
if((ModuloInteger(data,10)) != 0) then
set udg_input[i+81*(board-1)]=ModuloInteger(data,10)
set l=GetCellLoc(i,board)
if(ModuloInteger(data,10)==9)then
set u=CreateUnitAtLoc(Player(15),udg_num[ModuloInteger(data,10)],l,0)
else
set u=CreateUnitAtLoc(Player(15),udg_num[ModuloInteger(data,10)],l,180)
endif
call SetUnitVertexColorBJ( u, 0.00, 0.00, 0.00, 0 )
call RemoveLocation(l)
set udg_hint[i+81*(board-1)]=true
endif
set data=data/10
set i=i-1
endloop
set l=null
set u=null
endfunction
function Flash takes location l returns nothing
local effect e=AddSpecialEffectLoc("notifytile.mdx",l)
call RemoveLocation(l)
call PolledWait(2)
call DestroyEffect(e)
set e=null
endfunction
function Done takes integer p returns boolean
local integer i = 1
loop
exitwhen i>81
if (udg_input[i+81*p]!=udg_ans[i+81*p])then
return false
endif
set i=i+1
endloop
return true
endfunction
I'll go check this out, my mom... ALWAYS plays sudoku. Not much of a fan of it myself, but i'll try.
As for your... SU DOKU board it can't just be Canadian, I've never heard of it. I don't believe you too!
Answer to your binary Soduko avatar is 5. Wow i'm one smart cookie, only took me 2 tries to get it right!
No the answer to my avatar is
01
10
:nuts:
If you use flash I know how to make animated gifs a lot smaller, just ask if you need to know... (Sorry I'm dumb is 9.46 kb a lot for an animated gif?)
Not to be an ass, but try to stay on topic.