Kaydet (Commit) 315a2483 authored tarafından Tuğba Fıçıcı's avatar Tuğba Fıçıcı

Sıra önceliği eklendi.

üst a5644fea
......@@ -21,25 +21,27 @@ var treasure1=new Hole(0,"user1hole7");
var treasure2=new Hole(0,"user2hole7");
user1hole.push(treasure1);
user2hole.push(treasure2);
let player=1;
var player=2;
function tikla(id){
if(Number(id[4])==1 && player==Number(id[4])){
console.log(user1hole[Number(id[9])-1].id);
dagit(Number(id[4]),Number(id[9]));
player=2;
}else if(Number(id[4])==2 && player==Number(id[4])){
console.log(id[4]);
dagit(Number(id[4]),Number(id[9]));
player=1;
}
boncukCiz();
console.log(user1hole);
console.log(user2hole);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment