Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assignment finished #29

Open
wants to merge 107 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
3c044ba
Initialized 8 tests for basic letters, started creating a array for
Sep 28, 2016
da8ec0e
besouro automatic message
Oct 7, 2016
ba7f7cc
besouro automatic message
Oct 7, 2016
396bbf8
besouro automatic message
Oct 7, 2016
1f1f769
besouro automatic message
Oct 7, 2016
e58536b
besouro automatic message
Oct 7, 2016
0f6fb3f
besouro automatic message
Oct 7, 2016
b86719e
besouro automatic message
Oct 7, 2016
1c601d4
besouro automatic message
Oct 7, 2016
fcc0556
besouro automatic message
Oct 7, 2016
d871046
besouro automatic message
Oct 7, 2016
1229743
besouro automatic message
Oct 7, 2016
a54a0b2
besouro automatic message
Oct 7, 2016
6c7e87c
besouro automatic message
Oct 7, 2016
edddd4e
besouro automatic message
Oct 7, 2016
427e492
besouro automatic message
Oct 7, 2016
a1b9e80
besouro automatic message
Oct 7, 2016
353a3d9
besouro automatic message
Oct 7, 2016
4767cb9
besouro automatic message
Oct 7, 2016
e71520b
besouro automatic message
Oct 7, 2016
889528a
besouro automatic message
Oct 7, 2016
3b45798
besouro automatic message
Oct 7, 2016
680f23a
besouro automatic message
Oct 7, 2016
6fd09db
besouro automatic message
Oct 7, 2016
001fbdd
besouro automatic message
Oct 7, 2016
2a140f8
besouro automatic message
Oct 7, 2016
9ea8823
besouro automatic message
Oct 7, 2016
0521881
besouro automatic message
Oct 7, 2016
af48ab6
besouro automatic message
Oct 7, 2016
4c8712e
besouro automatic message
Oct 7, 2016
65515bd
besouro automatic message
Oct 7, 2016
9bdfe35
besouro automatic message
Oct 7, 2016
f87d183
besouro automatic message
Oct 7, 2016
b89df04
besouro automatic message
Oct 7, 2016
c9ec35d
besouro automatic message
Oct 7, 2016
3933d5e
besouro automatic message
Oct 7, 2016
0829aab
besouro automatic message
Oct 7, 2016
cb2262b
besouro automatic message
Oct 7, 2016
0e07b27
besouro automatic message
Oct 7, 2016
16f46b6
besouro automatic message
Oct 7, 2016
c999607
besouro automatic message
Oct 7, 2016
9609c0c
besouro automatic message
Oct 7, 2016
f5fd749
besouro automatic message
Oct 7, 2016
f4cc1e8
besouro automatic message
Oct 7, 2016
78e5445
besouro automatic message
Oct 7, 2016
9ccd71c
besouro automatic message
Oct 7, 2016
8131dc3
besouro automatic message
Oct 7, 2016
35474e8
besouro automatic message
Oct 7, 2016
a69fccd
besouro automatic message
Oct 7, 2016
359a0d2
besouro automatic message
Oct 7, 2016
a3a3cb7
besouro automatic message
Oct 7, 2016
60c1103
besouro automatic message
Oct 7, 2016
dbfc71e
besouro automatic message
Oct 7, 2016
b695174
besouro automatic message
Oct 7, 2016
ca228ec
besouro automatic message
Oct 7, 2016
ea7b844
besouro automatic message
Oct 7, 2016
8d6585a
besouro automatic message
Oct 7, 2016
9973a61
besouro automatic message
Oct 7, 2016
12b808c
besouro automatic message
Oct 7, 2016
14e7981
besouro automatic message
Oct 7, 2016
b5d4d53
besouro automatic message
Oct 7, 2016
dcbb45b
besouro automatic message
Oct 7, 2016
d01e21c
besouro automatic message
Oct 7, 2016
ae12b4d
besouro automatic message
Oct 7, 2016
3a2ebe6
besouro automatic message
Oct 7, 2016
e9fcd08
besouro automatic message
Oct 7, 2016
419c1c5
besouro automatic message
Oct 7, 2016
9d286af
besouro automatic message
Oct 7, 2016
1119f0b
besouro automatic message
Oct 7, 2016
f97b4ff
besouro automatic message
Oct 7, 2016
cbf35b8
besouro automatic message
Oct 7, 2016
7f65f0b
besouro automatic message
Oct 7, 2016
f36b0ee
besouro automatic message
Oct 7, 2016
a2bb11f
besouro automatic message
Oct 7, 2016
60289fc
besouro automatic message
Oct 7, 2016
5068138
besouro automatic message
Oct 7, 2016
ab510fd
besouro automatic message
Oct 7, 2016
a7efb53
besouro automatic message
Oct 7, 2016
b59e1ad
besouro automatic message
Oct 7, 2016
c6fa887
besouro automatic message
Oct 7, 2016
7b67bfa
besouro automatic message
Oct 7, 2016
207d8fd
besouro automatic message
Oct 7, 2016
6b8d5cc
besouro automatic message
Oct 7, 2016
818c8c5
besouro automatic message
Oct 7, 2016
f759eb0
besouro automatic message
Oct 7, 2016
838ff6a
besouro automatic message
Oct 7, 2016
9560de0
besouro automatic message
Oct 7, 2016
d463052
besouro automatic message
Oct 7, 2016
d33c980
besouro automatic message
Oct 7, 2016
aa9be71
besouro automatic message
Oct 7, 2016
4006508
besouro automatic message
Oct 7, 2016
d142ea1
besouro automatic message
Oct 7, 2016
a487ecf
besouro automatic message
Oct 7, 2016
d339193
besouro automatic message
Oct 7, 2016
121414a
besouro automatic message
Oct 7, 2016
860ab2c
besouro automatic message
Oct 7, 2016
10edba2
besouro automatic message
Oct 7, 2016
c35e41a
besouro automatic message
Oct 7, 2016
9321228
besouro automatic message
Oct 7, 2016
7dd9620
besouro automatic message
Oct 7, 2016
4808caf
besouro automatic message
Oct 7, 2016
1a2feff
besouro automatic message
Oct 7, 2016
f71f45d
besouro automatic message
Oct 7, 2016
06f7dfe
besouro automatic message
Oct 7, 2016
811025d
besouro automatic message
Oct 7, 2016
0f9e1b8
besouro automatic message
Oct 7, 2016
b945ad3
besouro automatic message
Oct 7, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
417 changes: 417 additions & 0 deletions .besouro/20161007144331704/actions.txt

Large diffs are not rendered by default.

91 changes: 91 additions & 0 deletions .besouro/20161007144331704/besouroEpisodes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
1475844040610 refactoring 2A 3428 true
1475844040611 production 1 3428 false
1475844040612 production 2 3428 false
1475844084856 test-addition 1 34 true
1475844084857 test-addition 1 34 true
1475844084858 test-addition 1 34 true
1475844084859 test-addition 1 34 true
1475844103820 test-addition 1 16 true
1475844103821 test-addition 2 16 true
1475844103822 test-addition 2 16 true
1475844103823 test-addition 1 16 true
1475844103824 test-addition 2 16 true
1475844103825 test-addition 2 16 true
1475844181275 test-addition 1 12 true
1475844181276 test-addition 1 12 true
1475844194481 test-addition 1 8 true
1475844194482 test-addition 1 8 true
1475844221021 test-addition 1 21 true
1475844221022 test-addition 1 21 true
1475844224884 regression 1 0 true
1475844275406 refactoring 2A 27 true
1475844335889 test-first 3 46 true
1475844335890 test-first 3 46 true
1475844360720 test-addition 1 11 true
1475844360721 test-addition 1 11 true
1475844375631 test-addition 1 8 true
1475844375632 test-addition 1 8 true
1475844428152 test-first 3 47 true
1475844428153 test-first 3 47 true
1475844832287 test-first 3 393 true
1475844832288 test-first 3 393 true
1475844832289 test-first 3 393 true
1475844832290 test-first 3 393 true
1475844832291 test-first 3 393 true
1475844832292 test-first 3 393 true
1475844832293 test-first 3 393 true
1475844832294 test-first 3 393 true
1475844832295 test-first 3 393 true
1475844832296 test-first 3 393 true
1475844832297 test-first 3 393 true
1475844832298 test-first 3 393 true
1475844832299 test-first 3 393 true
1475844832300 test-first 3 393 true
1475844832301 test-first 3 393 true
1475844832302 test-first 3 393 true
1475844832303 test-first 3 393 true
1475844832304 test-first 3 393 true
1475844832305 test-first 3 393 true
1475844832306 test-first 3 393 true
1475844832307 test-first 3 393 true
1475844832308 test-first 3 393 true
1475844832309 test-first 3 393 true
1475844832310 test-first 3 393 true
1475844921586 test-addition 2 74 true
1475844921587 test-addition 1 74 true
1475844921588 test-addition 2 74 true
1475844921589 test-addition 1 74 true
1475844921590 test-addition 1 74 true
1475844921591 test-addition 1 74 true
1475845017187 test-first 1 85 true
1475845017188 test-first 1 85 true
1475845017189 test-first 1 85 true
1475845017190 test-first 1 85 true
1475845017191 test-first 1 85 true
1475845017192 test-first 1 85 true
1475845017193 test-first 1 85 true
1475845017194 test-first 1 85 true
1475845017195 test-first 1 85 true
1475845017196 test-first 1 85 true
1475845017197 test-first 1 85 true
1475845017198 test-first 1 85 true
1475845017199 test-first 1 85 true
1475845017200 test-first 1 85 true
1475845017201 test-first 1 85 true
1475845017202 test-first 1 85 true
1475845017203 test-first 1 85 true
1475845017204 test-first 1 85 true
1475845048492 test-addition 1 15 true
1475845048493 test-addition 1 15 true
1475845070700 test-addition 1 12 true
1475845070701 test-addition 1 12 true
1475845091396 test-addition 1 15 true
1475845091397 test-addition 1 15 true
1475845140660 test-first 3 44 true
1475845140661 test-first 3 44 true
1475845176832 test-first 3 26 true
1475845176833 test-first 3 26 true
1475845217382 test-addition 1 33 true
1475845217383 test-addition 1 33 true
1475845249695 test-addition 1 15 true
1475845249696 test-addition 1 15 true
Empty file.
22 changes: 22 additions & 0 deletions .besouro/20161007144331704/randomHeuristicEpisodes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
1475844040610 refactoring 2A 3428 false
1475844084856 test-addition 1 34 false
1475844103820 test-addition 1 16 false
1475844181275 test-addition 1 12 true
1475844194481 test-addition 1 8 false
1475844221021 test-addition 1 21 false
1475844224884 regression 1 0 true
1475844275406 refactoring 2A 27 true
1475844335889 test-first 3 46 true
1475844360720 test-addition 1 11 true
1475844375631 test-addition 1 8 false
1475844428152 test-first 3 47 true
1475844832287 test-first 3 393 true
1475844921586 test-addition 2 74 true
1475845017187 test-first 1 85 true
1475845048492 test-addition 1 15 false
1475845070700 test-addition 1 12 true
1475845091396 test-addition 1 15 false
1475845140660 test-first 3 44 true
1475845176832 test-first 3 26 true
1475845217382 test-addition 1 33 true
1475845249695 test-addition 1 15 false
Empty file.
22 changes: 22 additions & 0 deletions .besouro/20161007144331704/zorroEpisodes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
1475844040610 refactoring 2A 3428 true
1475844084856 test-addition 1 44 true
1475844103820 test-addition 1 18 true
1475844181275 test-addition 1 77 true
1475844194481 test-addition 1 13 true
1475844221021 test-addition 1 26 true
1475844224884 regression 1 3 true
1475844275406 refactoring 2A 50 true
1475844335889 test-first 3 60 true
1475844360720 test-addition 1 24 true
1475844375631 test-addition 1 14 true
1475844428152 test-first 3 52 true
1475844832287 test-first 3 404 true
1475844921586 test-addition 2 89 true
1475845017187 test-first 1 95 true
1475845048492 test-addition 1 31 true
1475845070700 test-addition 1 22 true
1475845091396 test-addition 1 20 true
1475845140660 test-first 3 49 true
1475845176832 test-first 3 36 true
1475845217382 test-addition 1 40 true
1475845249695 test-addition 1 32 true
95 changes: 93 additions & 2 deletions src/RomanNumerals.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,99 @@

public class RomanNumerals {

int convertedInteger = 0;
int decimal = 0;
int lastNumeral = 0;
int lastV = 0;
int numOfInts = 0;


public int convertToInteger(String romanNum) {
// To be Implemented
return 0;

String[] characters = new String[romanNum.length()];

for (int i = romanNum.length() - 1; i >= 0; i--) {
char currentRomanNumeral = romanNum.charAt(i);

switch (currentRomanNumeral){
case 'I':
convertedInteger += 1;
break;

case 'V':
convertedInteger += 5;
break;

case 'X':
convertedInteger += 10;
break;

case 'L':
convertedInteger += 50;
break;

case 'C':
convertedInteger += 100;
break;

case 'D':
convertedInteger += 500;
break;

case 'M':
convertedInteger += 1000;
break;
}
}
if (romanNum.contains("IV")){

convertedInteger -= 2;
}
if (romanNum.contains("XL")){

convertedInteger -= 10;
}
if (romanNum.contains("XC")){

convertedInteger -= 20;
}
if (romanNum.contains("CD")){

convertedInteger -= 200;
}
if (romanNum.contains("CM")){

convertedInteger -= 200;
}



return convertedInteger;

}
/*
private void convertTo(String romanNum) {

if (romanNum == "VII")
convertedInteger += 7;

else if (romanNum == "VI")
convertedInteger += 6;

else if (romanNum == "V")
convertedInteger += 5;

if (romanNum == "IV")
convertedInteger += 4;

else if (romanNum == "III")
convertedInteger += 3;

else if (romanNum == "II")
convertedInteger += 2;

else if (romanNum == "I")
convertedInteger += 1;

}*/
}
Loading