Number Finder- pengenalan:
Pas ada minigame yang harus bikin operasi matematika sampai angka 10
- Code:
-
globalvar op, arg;
op[0]="+"
op[1]="-"
op[2]="*"
op[3]="/"
arg[0] = argument[0] // As target
arg[1] = argument[1] // As number to operate
arg[2] = argument[2] // As number to operate
arg[3] = argument[3] // As number to operate
arg[4] = argument[4] // As number to operate
globalvar a,b,c,SUM,str;
a=0;b=0;c=0;i=0;str="";ret="";
do {
b=0
do {
c=0
do {
str=string(arg[1])+op[a]+string(arg[2])+op[b]+string(arg[3])+op[c]+string(arg[4])
SUM[i]=execute_string("return "+str)
if SUM[i]==arg[0] then {
show_message("Solution \#"+string(i)+" made at '"+str+"'!") // Hapus line ini, bila tidak ingin ada message
ret=ret+"Solution \#"+string(i)+" made at '"+str+"'!"+"
"
}
c+=1
i+=1
} until (c>=4)
b+=1
} until (b>=4)
a+=1
} until (a>=4)
if ret == "" then ret = "No Solutions Made!"
return ret
Fungsi: mencari solusi dari 4 angka
Pasang?
- di mana aja..
- cara jalanin >> algorithm_finder(target,num1,num2,num3,num4)
- pro / lite bisa..
- Screenshot:
paling kaya gini..
"Solution #32 made at '1*10+10+4'" // kalo target 24
Kalo mau coba, download ini aja
Dibuat oleh : Irfan (self)
Pakai credit? boleh saja
- OOT - lagi nunggu:
yang pertamax
- OOT - buat mimin atau momod:
maaf, kalo ngelanggar format, soalnya formatnya belum dipost..