Skip to content

Commit

Permalink
Reverted to earlier code. Undefined bug to be fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
sahlamba committed Aug 14, 2014
1 parent 11cb9a0 commit cc1320e
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions js/expert.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,6 @@ grid[5] = new Array(9);
grid[6] = new Array(9);
grid[7] = new Array(9);

for(var fix=0; fix<=9; fix++){
grid[0][fix]=20;
grid[7][fix]=25;
}

for(var fix2 = 0; fix2 <= 7; fix2++){
grid[fix2][0]=30;
grid[fix2][8]=35;
}


grid[0][0]=-100;

Expand Down Expand Up @@ -1043,7 +1033,7 @@ function AIMove(){


a=l-1, b=i;
if(a > 1 &&b <= 6){
if(a>1 && b<7){
gridc[l][i]=0;
gridc[a][b]=1;
columnsCopy[i]--;
Expand Down Expand Up @@ -1110,7 +1100,7 @@ function AIMove(){


var counter6 = 0, direction6 = 5;
if(a > 1 &&b <= 6){
if(a > 1 && b < 6){

gridc[l][i]=0;
gridc[l-1][i]=1;
Expand Down Expand Up @@ -1244,7 +1234,7 @@ function AIMove(){


a=l2, b=k;
if(a > 1 &&b <= 6){
if(a > 1 && b < 6){


counter2 = 0, direction2 = 5;
Expand Down Expand Up @@ -1304,7 +1294,7 @@ function AIMove(){


var counter6 = 0, direction6 = 5;
if(a > 1 &&b <= 6){
if(a>1&&b<7){


if (gridc[a][b] === gridc[a + 1][b + 1]) {
Expand Down Expand Up @@ -1433,7 +1423,7 @@ function AIMove(){



if(a > 1 &&b <= 6){
if(a > 1 && b < 6){


counter2 = 0, direction2 = 5;
Expand Down Expand Up @@ -1490,7 +1480,7 @@ function AIMove(){


var counter6 = 0, direction6 = 5;
if(a > 1 &&b <= 6){
if(a > 1 && b < 6){

if (gridc[a][b] === gridc[a + 1][b + 1]) {
counter6 += 1;
Expand Down Expand Up @@ -1618,7 +1608,7 @@ function AIMove(){



if(a > 1 &&b <= 6){
if(a > 1 && b < 6){


counter2 = 0, direction2 = 5;
Expand Down Expand Up @@ -1675,7 +1665,7 @@ function AIMove(){


var counter6 = 0, direction6 = 5;
if(a > 1 &&b <= 6){
if(a>1&&b<7){

if (gridc[a][b] === gridc[a + 1][b + 1]) {
counter6 += 1;
Expand Down Expand Up @@ -1809,7 +1799,7 @@ function AIMove(){



if(a > 1 &&b <= 6){
if(a>1 && b<7){


counter2 = 0, direction2 = 5;
Expand Down Expand Up @@ -1866,7 +1856,7 @@ function AIMove(){


var counter6 = 0, direction6 = 5;
if(a > 1 &&b <= 6){
if(a>1&&b<7){

if (gridc[a][b] === gridc[a + 1][b + 1]) {
counter6 += 1;
Expand Down

0 comments on commit cc1320e

Please sign in to comment.