已取消

C# 编程 Job by aircloud9

‎1. Anywhere there is a [url removed, login to view]()*6 make all the 6's into 30's

2. Do the same for all the ones that are [url removed, login to view]()*3 and make it 15 instead of 3

The paid version will have a form field where you can set the number of sides and a cleaning up of the code (which is really messy right now).

The HTM file has embedded JavaScript in it (what your calling Java which except for an accidental name similarity are not the same things) and that is what is being modified.

This makes Einsteins dice suitable for role playing game and 80 number keno.

<html>

<head>

<title>Einsteins Loaded Dice</title>

<style type="text/css">

<!--

h1{

margin:10px;

font-family:arial;

padding:0px;

font-size:12pt;

}

#normal_die{

float:left;

width:200px;

background-color:#ccf;

}

#loaded_die{

float:right;

width:200px;

background-color:#fcc;

}

//-->

</style>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>

<script type="text/javascript">

function roll_rand(){

var r = [url removed, login to view]([url removed, login to view]()*6)%6+1;

return r;

};

function roll_even(){

var r = ([url removed, login to view]([url removed, login to view]()*3)%3+1)*2;

return r;

};

function roll_odd(){

var r = (([url removed, login to view]([url removed, login to view]()*3)%3+1)*2)-1;

return r;

};

var next_rolls = [];

var prev_rolls = [];

function roll_supr(){

// this allows us to inject rolls

if([url removed, login to view] > 0){

// when the next_rolls is specialized, we need to clear state

[url removed, login to view] = 0;

var r= [url removed, login to view]();

//[url removed, login to view](r);

return r;

}else if([url removed, login to view] == 0 || [url removed, login to view] == 1 || [url removed, login to view] == 3){

// not enough previous rolls to test

var r=roll_rand();

[url removed, login to view](r);

return r;

}else{

var prev1_roll = prev_rolls[[url removed, login to view] -1];

var prev2_roll = prev_rolls[[url removed, login to view] -2];

if(prev1_roll%2==1 && prev2_roll%2==0 ||

prev1_roll%2==0 && prev2_roll%2==1){ // 1e + 1o = 2o

[url removed, login to view](roll_odd());

var r=roll_odd();

// [url removed, login to view](r);

return r;

}else if([url removed, login to view] == 4){

var prev3_roll = prev_rolls[[url removed, login to view] -3];

var prev4_roll = prev_rolls[[url removed, login to view] -4];

if((prev1_roll%2==1 && prev2_roll%2==1 && prev3_roll%2==0 && prev4_roll%2==0)

||(prev1_roll%2==0 && prev2_roll%2==0 && prev3_roll%2==1 && prev4_roll%2==1)

){

[url removed, login to view](roll_even());

[url removed, login to view](roll_even());

[url removed, login to view](roll_even());

var r=roll_even();

// [url removed, login to view](r);

return r;

}else{

var r= roll_rand();

[url removed, login to view]();

[url removed, login to view]();

[url removed, login to view](r);

return r;

}

}else{

var r=roll_rand();

[url removed, login to view](r);

return r;

}

}

};

function do_roll(){

var count = $('#roll_count').val();

for(i=0; i<count; i++){

var n1 = roll_rand();

var n2 = roll_rand();

var l1 = roll_supr();

var l2 = roll_supr();

// base_dice

var normal_dice = $("<div></div>").html(

"["+n1+"]["+n2+"]"

);

var loaded_dice = $("<div></div>").html(

"["+l1+"]["+l2+"]"

);

$('#normal_die').append(normal_dice);

$('#loaded_die').append(loaded_dice);

};

}

function clearall(){

$('#normal_die').html($("<h1>normal die</h1>"));

$('#loaded_die').html($("<h1>loaded die</h1>"));

[url removed, login to view] = 0;

[url removed, login to view] = 0;

};

$(document).ready(function(){

$('#btnThrow').click(function(){

do_roll();

});

$('#btnClear').click(function(){

clearall();

});

});

</script>

</head>

<body style="text-align:center;">

<div style="position:relative; margin:0 auto; width:450px; background-color:#cfc;">

<fieldset style="margin:10px;">

<legend>Einsteins Dice</legend>

<label for="roll_count">rolls:</label>

<input type="text" id="roll_count" value="1">

<input id="btnThrow" value="Throw Dice" type="submit" onsubmit="return false;">

<input id="btnClear" value="Clear Score" type="submit" onsubmit="return false;">

</fieldset>

<div id="normal_die">

<h1>normal die</h1>

</div>

<div id="loaded_die">

<h1>loaded die</h1>

</div>

<div style="clear:both"> </div>

</div>

</body>

</html>

Modify the source code so it predicts 20 or 10 numbers for Australian keno with EInsteins loaded dice from an 80 sided dice.

I want you to do this job for me cheap and give me an MHT application that can run as HTML.

技能: C# 编程

查看更多: what is job id, style your head, style background color javascript, round name, push pop game, padding background, N2, length of a score, l2, java shift, family id, do your math, background padding, australian job com, australian it job, html inject, dice game, val , test center, similarity, role-playing, R&R, modify previous script, math game , legend

About the Employer:
( 1 review ) TWEED STH, Australia

项目ID: #1424793

2名威客为此工作的平均竞标价是$5/小时

MrProgrammerz

Hired by the Employer

$5 AUD每小时
(0条评论)
0.0
sbsshah

hi i am experience in this field

$5 AUD每小时
(0条评论)
0.0