Skip to content

Commit

Permalink
New javac csv, and model added neurons
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhvani Patel committed Aug 4, 2017
1 parent 694cbc1 commit 520f29f
Show file tree
Hide file tree
Showing 6 changed files with 48,050 additions and 14,168 deletions.
43 changes: 43 additions & 0 deletions Scripts/ToCheckEc.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import java.util.ArrayList;

public class SimpleDotCom
{
int [] locationCells;
int numOfHits = 0;
ArrayList<Integer> cells = new ArrayList<Integer>();


public void setLocationCells(int [] locs)
{
locationCells = locs;
for( int c : locs ){
cells.add(c);
}

public String checkYourself (String stringGuess)
{
int guess = Integer.parseInt(stringGuess);

String result = "miss";

for(int cell : locationCells) {
if( guess == cell) {
result = "hit";
numOfHits ++;
break;
}

}

if (numOfHits == locationCells.length)
{

result = "kill";
}
System.out.println(result);
return result;

}


}
Loading

0 comments on commit 520f29f

Please sign in to comment.