Traversal

CS114/RW114 First Project Hand-in Marks

Student Number Command-line arguments interpreted correctly - 2 marks Usage error upon incorrect command line arguments - 2 marks Style - 4 marks Correctly formatted, no OOP, compiled with .zip, includes necessary stdlib files etc. - 4 marks external stacks (2 per test case) - 12 marks Moving pieces on the board (2 per test case) - 8 marks Stack ordering ruels (2 marks) - 2 marks Picking up of pieces resulting effects (2 marks per test case) - 4 marks Placing a piece in the same position - 2 marks Illegal move counts as a skipped turn - 2 marks Quit command - 2 marks Green player wins - 2 marks 2 - marks Draw - 2 marks Edge case situations (2 per test case) - 6 marks Total Percentage Feedback (please take time to give the students helpful feedback here)
16196171 0 0.00 No submission
17854865 2 2 1 3 12 8 2 4 2 2 0 2 2 6 48 88.89 Style: Very inconsistent indentation and large open spaces between code segments. Inconsistent convention regarding opening brace for loops and conditionals. Good commenting. Handin: There should not be a SU in front of your student number for the .zip, this could have led to big problems if marking was automated. Test cases: The only test case you failed is when a player quits the game. You output the line No winner, input file ended, which should not be the case. Code: This did not cost you any marks, but note that it should not be necessary to have if statements with conditions longer than 1-2 lines, conditions should not be 60+ lines. Overall good job, just work on code style and try to write simpler code.
19285361 2 2 1 4 4 4 0 0 0 0 2 2 0 0 21 38.89 Style: Inconsistent indentation, inconsistent convention about placement of opening and closing braces for conditionals and loops. Decent comments. Descriptive naming. Code: Your statistics for board stacks are incorrect for certain test cases. Your program sees it as invalid for a green piece to be played on a smaller blue piece in a scenario where blue already has 3 pieces in a column. You allow players to keep playing pieces from an external stack that is already empty. Your code gives no output after receiving a move that moves a players larger piece over opponents smaller piece. You allow players to move smaller pieces over larger pieces. When moving pieces of the same colour over each other, both pieces disappear. After a player moves a piece to the same position, you display the board again, which is incorrect. It seems that your biggest problem was that your program breaks, when players move pieces, if you fix this I'm sure your mark will improve drastically.
19911084 2 2 3 3 12 8 2 4 2 2 2 2 2 6 52 96.30 Handin format: Should be .zip not .rar, this made it quite difficult to mark your project. Style: Inconsistent indentation, informative naming, consistent convention, good commenting.
20186096 2 2 1 3 12 8 2 4 2 2 2 2 2 6 50 92.59 Style: A lot of commented out code, inconsistent indentation, consistent placement of opening and closing braces, consistent convention, fairly informative naming, almost no comments. Handin format: There should be no SU in front of student number for your zip folder.
20322461 0 0.00 No submission
20824432 2 2 0 3 0 0 0 0 0 0 0 0 0 0 7 12.96 Output: Remember to include the statistics for each stack present on board! Also, check the formatting and ordering of your output, there is few small mistakes. Logic: Have another look at how to handle different situtations and moves, such as an invalid moves or quitting, or when winning or draw conditions are met. Style: Please have another look at the way you tackle the project, having 15 000 lines of code for a project of this size is unneccesary. If you are unsure of how to optimise your code, consider booking a tutor slot and asking them for some advice. Submission: Please follow the correct directory structure for your next submission. Error handeling: You should not print a blank board when the incorrect number of arguments is provided.
21077320 2 2 2 3 0 0 0 0 0 0 0 0 0 0 9 16.67 Output: Remember to include statistic output when in running in text mode. Logic: Spend some more time on your programs logic, various test cases printed out incorrect or additional boards. You can use the provided test cases to test your output. Submission: Please follow the correct directory structure for your next submission. Style: Please comment a bit more and do so consistently. Submission also included many lines of code that was commented out, please try to keep this to a minimum.
21930910 2 2 3 2 12 8 2 4 2 2 0 2 0 6 47 87.04 Style: Please add more comments than simply roughly explaining what each method does. Output: Please check your output against the provided examples. Your letter case, formatting and vertical spacing must match! Logic: Check the conditions under which certain output strings must print and not. In certain cases your printed output strings which you should not have.
21700168 2 2 1 0 6 2 0 0 0 0 2 2 0 0 17 31.48 Output: Please revisit the formatting of the statistics output and make sure it matches exactly, a lot of your formatting was incorrect. Logic: Program crashed when selecting from an an external stack. Also, please have a goood look through the specifications and implement every logic check specified, multiple were were not implemented. Style: Please add comments and keep to a consistent spacing pattern pattern. Format: Please conform to the file naming and directory structure specified in the project spec.
21783802 2 2 3 1 8 2 0 0 0 0 2 2 0 0 22 40.74 Format: Please follow the file naming and directory structure converntions specified in the project spec. Logic: Please read carefully through the project spec and use the test cases provided to make sure you print the right amount of boards and the stack correctly. Style: Please comment consistently throughout your class.
21743274 2 2 2 4 12 8 2 4 2 2 2 2 2 6 52 96.30 Very nice, remember to include more comments and more explanatory comments in your next submission.
21723664 2 0 2 3 12 8 2 4 2 2 2 2 2 6 49 90.74 Very nice, remember to comment consistently for your whole class(Note: Javadoc is not required for this project. Keep it short and sweet, but descriptive). Also, have a look at the submission requirements in the project spec and next time submit your zip file with the correct naming conventions. Error handling: Pleas remember to include error handling for incorrect number of arguments.
22010564 0 0.00 No submission
22802363 2 2 2 2 0 2 0 0 2 0 0 0 0 0 12 22.22 Output: Stats output was in wrong order for various test cases and you need to check the formatting of your output strings, they contain small mistakes. Check the requirements for when which output string must be printed, that was incorrect on multiple occasions. Style: Please make sure to name and structure your directories and submission as specified by the spec. For your next handin, comment more thoroughly. Once we decide on a style of indention and bracket placement, keep to it.
22682708 0 0.00 No submission
22624368 0 2 0 2 0 0 0 0 0 0 0 0 0 0 4 7.41 Style: You need to code complimentory methods of your class within the same class declaration. If you were attempting to do OOP, but within the same .java file, please remember that OOP is not allowed for this project. Also, please pay attention to the requested file and directory naming conventions specified in the project spec, as well as the naming conventions for submission.
23251646 2 2 4 1 0 0 0 0 0 0 0 0 0 0 9 16.67 utput: Please remove the debugging strings for submissions! Check the formatting for boards specified in the project spec and when and what output srings should be printed. Logic: Have another look at what constitutes an invalid move, Invalid move was regularly declared incorrectly. Formatting: Please pay attention to the naming and directory requirements specified in the project spec.
22559043 0 0.00 No submission
23056940 2 0 4 3 12 8 2 4 2 2 2 2 2 6 51 94.44 Please pay attention to the sunmission requirements specified in the porject spec! (.zip instead of .rar). Furthermore, please check on the requirements to handle the scenario when the incorrect number of arguments are supplied.Please pay attention to the sunmission requirements specified in the porject spec! (.zip instead of .rar). Furthermore, please check on the requirements to handle the scenario when the incorrect number of arguments are supplied.
23271965 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 1.85 Please read the project specifications and attempt the project for your next submission.
22663320 2 0 3 0 0 0 0 0 0 0 0 0 0 0 5 9.26 OOP: Please remember you are not allowed to use OOP for this project. Compiling: Could not compile program due to multiple errors. Error handling: Please check the project spec for instructions when the incorrect number of arguments are providied. Style: When commenting, do so consistently throughout.
23103817 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1.85 Please read the project spec on the sunlearn page.
22886060 0 0.00 No submission
23023899 0 0.00 No submission
23173351 0 0.00 No submission
22278885 0 0 4 0 0 0 0 0 0 0 0 0 0 0 4 7.41 OOP used. Does not compile (check the packages). Also does not follow the rules of the game where all inputs should be read in from a .txt file
23858494 2 2 4 2 10 18.52 .RAR file used instead of .zip. Program does not compile (change your main method's name to the same name as the .java file) A lot of runtime errors present in testing. Program outputs don't match expected outputs. Your program should print "No Winner" until it has reached the end of the input file then print "No winner, input file ended". Program also does not print any of the required statistics after each input
19374127 0 0.00 No Submission
23576960 2 0 3 4 9 16.67 Project seems unfinished. Main methods commented out, so program will not compile. No statistics are being printed for any test cases. A lot of runtime errors.
23840153 0 0 3 3 0 0 0 0 0 0 0 0 0 0 6 11.11 Project is named incorrectly. It does not read in input files correctly. Runtime errors on every test case
23572604 2 2 4 4 0 0 0 0 0 0 0 0 0 0 12 22.22 No usage error for incorrect number of arguments. No statistics were printed so none of the test cases can pass. Test cases 2, 8, 9, 10, 11, 14, 15, 19 and 21 were incorrect as well as having no statistics.
23553901 0 0.00 No submission
21833575 0 0.00 No submission
23260122 2 2 4 2 0 0 0 0 0 0 0 0 0 0 10 18.52 Format of files is incorrect, do not include src and bin. Formatting of output is incorrect, add a space after the name of each row. Your project does not pass any of the test cases, it seems to be naming the pieces incorrectly. Your stats don't print anything other than the headings.
23606185 2 2 4 3 12 6 2 4 2 2 2 2 2 6 51 94.44 Good project. Slightly wrong format as you included src and bin folders. Test case 9 causes a run time error when there should be an "invalid move" error for trying to move the other player's piece.
23845260 0 0.00 No submission
24008389 2 2 4 2 0 0 0 0 0 0 0 0 10 18.52 File directory format is incorrect, please do not include the src folder. Your program file is named correctly but the class name inside of the java is incorrect. Incomplete program, does not pass any of the test cases and always prints the same output. Incorrect number of arugments error is correct, however please use the same message as in the spec.
23990198 0 2 4 2 12 6 2 4 2 2 2 2 2 6 48 88.89 Good project. Your input did not work at first, you need to make sure that it can read in the input file supplied by the argument given. You failed test case 9 where a player tries to move a piece belonging to the other player, an "invalid move" error should've been shown.
23763663 0 0.00 No submission
24009474 2 0 4 4 0 0 0 0 0 0 0 0 0 0 10 18.52 No usage error for incorrect number of arguments. Your statistics are not being printed correctly, there should be a ":" after each stack name and a space in between the number and letter. There is a lot of empty lines being printed in the stats area. Your program throws invalid move errors unnesecarily. It also seems to be placing pieces in the wrong locations, and so none of the test cases are passing.
23686375 2 0 4 3 0 0 0 0 0 0 0 0 0 0 9 16.67 Class declaration in your code is commented out and incorrect, so it will not compile. StdLib files were not included. All of the pieces you're placing are for the green player and none of the blue's pieces. Runtime errors in quite a few of the test cases.
23720166 0 0.00
23745371 0 0.00 No submission
23973277 0 0 3 1 0 0 0 0 0 0 0 0 0 0 4 7.41 Project had many issues.Code didn't compile at first, syntax errors. The file path was hardcoded, so script wouldn't run. There were a lot of extra empty lines in the output. There was also extra output which i assume was there for personal debugging purposes, please remember to delete or comment these out. Failed to output any statistics at all. Minimal to no error handling. After fixing the basic formatting errors for you, bigger issues emerged.There is fundamental issue with your logic used, i suggest going over your entire project again and taking it step by step, there is a lot of promising work here, i feel you can really do well in the second hand in if you apply yourself.
23995327 2 2 4 2 0 0 0 0 0 0 0 0 0 0 10 18.52 Name of the main file was wrong. Also submittted src and bin folders which is wrong.Program did not run the way it was supposed to. Some formatting issues with your stats, please check for uneccesarry uses of the "|" symbol... Stats are also incorrect, however i don't think its due to your moves being incorrect so there are flaws in both sections of the code. Despite all of this, the work does look promising, please put in a bit more effort and you'll come to find that your program is not far away from working the way it should.
23651148 2 2 3 4 12 8 2 4 2 2 2 2 2 6 53 98.15 Fantastic work. It was also very painful to give you 3/4 for style, but it is very easy to fix. You had some VERY long conditions for your if statements which was mostly due to your naming convetions which is perfectly fine, mutliple line conditons aren't unheard of, but by making a single line about 300 characters long makes reading it very difficult . The lack of indentation can honestly also be applied pretty much over your entire project. Feel free to add empty white lines between code, it help with readability and makes it look a lot nicer. Other than that, an amzing project, well done!
23793511 2 0 4 4 6 2 0 0 0 0 0 0 0 0 18 33.33 No error handling. The message "no winner, input file ended" was printing at the bottom of all the stats and not on top, which is wrong, i changed it for marking purposes but be sure to change it yourself. it was very painful to see so many of your test cases get so close to being identical, but almost all of them weren't. Revisit your stats, the problem mostly lied there. And in some cases your grid would output fine, but it would end up printing one extra grid at the bottom which is defintely not okay, this is an easy fix once you find the bug.
21992819 2 2 4 4 12 8 2 4 2 2 2 2 2 6 54 100.00 I truly don't have anything bad to say other than you use a lot of comments. I believe yours is borderline too many comments actually, otherwsie, a brilliant project! Well done!
23594500 0 0 4 3 0 0 0 0 0 0 0 0 0 0 7 12.96 Your method of input is wrong, it is aparent that you did not see/use the skeleton that was provided, and without changing the way you read in the file and the way you traverse through the file, which can be done in basically 5 minutes if you know what you're doing, your project fails to run. PLEASE pay more attention to the spec and the input they want, a mistake like this is unacceptable and easily avoidable. Due to this, it pains me to say that i could'nt run any of the test cases.
23741724 0 0.00 Did not find SU number on SunLearn
23684534 2 2 4 4 8 8 2 2 2 0 0 0 0 4 38 70.37 First off, i had to change the variable in line 33 from coll to row, if i did not do this, every single test case fails immediately. Please be more vigilant regarding simple errors like this, i'm not sure how you did not notice it during testing. Most of your cases had the problem where the output and is identical, but you always had one extra grid printed for some reason, which is also unacceptable, but i gave you the marks seeing as its most likely just one for loop that runs one too many times each time and i would have felt bad if i penalised you for that. I once again am not sure how an error this simple slipped through like this. There are also some cases where you print out invalid move for no reason, look into this please. If any one of these 3 errors i mentioned above were too happen in the final hand in or a future project, i promise you they won't be as forgiving. Also, whenever a color wins, you print it out multiple times and not just once, look into this. Besides for all the negativity above, the project is not bad at all, in fact you have some very clever logic at ceratin parts in your project. Hope this feeback helps, as i remember personally helping you in one of the tuts!
24221139 0 0.00 No submission
24248614 2 2 4 4 12 8 2 4 2 2 2 2 2 6 54 100.00 Damh, not bad for a MAC user. Jokes aside, an amazing project. Great style and excellent logic. Easy to follow aswell. Just try next time to only submit the requested files, you had a "_MACOSX" folder and an "input.txt" file which should not be there.
23885637 0 0.00 No submission
23660465 2 2 4 4 12 8 2 4 2 2 2 2 2 6 54 100.00 I stared at this code for a good 20 min admiring it. Concise, effiecient, logical code. I actaully even learnt from it if i have to be honest with myself. One remark, you did not add a single comment yourself, which is bad practise especially when you're working on a project you have to submit. I know what a mission commenting can be, especially when you know exactly what happens where, but not everyone that reviews your code will necessarily feel the same.
24442321 0 0.00 No submission
23964995 2 0 2 2 0 0 0 0 0 0 0 0 0 0 6 11.11 Incomplete project. Not much to comment on because there honestly is not much there. I tried looking for useful feedback to give, but to no avail.
23761938 0 0 4 0 0 0 0 0 0 0 0 0 0 0 4 7.41 Your method of input is wrong, it is aparent that you did not see/use the skeleton that was provided, and without changing the way you read in the file and the way you traverse through the file your project fails to run. PLEASE pay more attention to the spec and the input they want, a mistake like this is unacceptable and easily avoidable. Due to this, it pains me to say that i could'nt run any of the test cases. On top of that you submitted an incorrectly named java file without a plagiarism file, instead of a zip file containing your files and plagiarism document. This is also not acceptable.
24026956 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00 Incomplete project. Incorrect file structure, incorrect naming conventions, submitted the entire stdlib folder. Nothing to give feedback on. Late submission.
24382108 0 0.00 No Submission
24131377 0 0.00 No Submission
22691936 0 0.00 No Submission
23695412 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1.85 Could not compile due to basic syntax errors. I fixed them for you to test - but your program output was not correct. Please make sure you name and submit your project in the correct format and also submit a plagiarism declaration. Late submission.
23822546 2 2 4 4 0 0 0 0 0 0 0 0 0 0 12 22.22 Please include only your source code in the src folder (i.e. the input and output files should not be in there). Your ouput is not correct. Some parts are but you have some additional information printed that is incorrect. Make sure that you follow the format when printing your output e.g. do not include '[' and ']' when printing the stack information. Your program prints an empty board before it prints the error message when the incorrect number of command line arguments are provided - this should be fixed. Neat styling.
24131253 2 2 4 2 12 8 2 2 2 2 2 2 2 6 50 92.59 You need to print empty board upon initialization. I did give you the marks for the test cases where this was the only error - but please fix this. Overall a very good project - your program crashed on one test case regarding 'Picking up of pieces resulting effects' so have a look at that. Neat styling.
24561347 0 0.00 No Submission
24084514 2 2 4 4 4 0 0 0 0 0 0 0 0 0 16 29.63 Complied with strange warnings. Majority of test cases crashed due to 'ArrayIndexOutOfBoundsException' errors. Please make sure that your ouptut is formatted correctly. Make sure you do not print an empty board if the number of command line arguments are incorrect - only the error message. Good styling.
24234729 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00 Not much of an attempt made - cannot provide useful feedback. Please name your .zip file according to your student number and not the generic 'code-skeleton.zip'. Also submit a plagiarism delcaration.
23546611 0 0.00 No Submission
24671150 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00 Too many syntax errors. I tried to fix a few to see if I could get your program running but there were too many. Please include a plagiarism declaration. You also need to submit your project properly - in a .zip folder with the needed files such as In.java to run.
23768541 0 0.00 No Submission
24139114 2 0 4 3 2 2 0 0 2 0 0 0 0 0 15 27.78 Upload all the project contents in a single .zip folder. Name your .java program according to your student number. Generally your program printed incorrect output - here and there were minor differences - but a lot of the times your program crashed. Make sure you handle incorrect number if command line arguments correctly.
24694991 0 2 2 1 4 4 2 4 0 0 0 0 0 2 21 38.89 Your .java program needs to be named according to your student number. You need to include all required files to run your program such as In.java. You hardcoded your program to only use an input file named 'project.txt' so none of the test cases could run. I fixed this on my side to see if I could test it, but your program still did not produce the correct output. There is a lot of unnecessary spacing in your program - I took off some styling marks for that. Please make sure that the format of the output is identical to what is required.
24711306 2 2 4 4 4 2 0 0 1 1 1 1 0 1 23 42.59 Seems like you only print the boards and not all the other stack information that is why you did not pass the test cases. Make sure you only print an error message if the number of command line arguments are incorrect and not an empty board before the message. Neat styling. Marked some testcases partially correct where the correct board was printed but no stack information. Please fix this.
24712205 2 2 4 2 12 8 2 4 2 2 0 0 0 4 44 81.48 Your program compiled with an error which I had to fix - the error had to do with your case statements. Passed most test cases once fixed. Please submit a plagiarism declaration.
24714860 2 2 2 4 12 8 2 4 2 2 2 2 2 6 52 96.30 You passed all the test cases - well done. Please just make sure that you do not print an empty board in the case when the incorrect number of command line arguments are given.
24719862 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1.85 You need to name your .java file according to your student number. You cannot just rename the .java file and not rename the class inside - your program will not compile. I fixed this for you but your program would not run. You deviated a lot from the skeleton/spec and unnecessarily made use of a lot of Java libs which are not needed. If your program worked this would not be an issue, but it hangs when I try to run it.
24726141 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00 Very advanced looking code. Uses Java Stacks. The code is 3974 lines long but fails every test case due to incorrect usage of the stack.peek() function.
24756911 2 0 3 4 3 0 0 0 0 0 0 2 0 0 14 25.93 First error: Your class name(TicTacToe4) is not equal to your filename(SU24756911) and therefore your code does not compile from the command-line. You must ensure your class name and file name are exactly the same. I changed your class name manually and your code then compiles successfully. Second error: You hardcoded input1.txt as your input file. You need to make use of args[0] for input files. Good coding style and use of functions. Your code does need more comments that help explain functionality of certain parts of your code. Unfortunately you failed many test cases. Your code has many "array index out of bounds errors". Your outputs also do not match the given outputs for example, your code must say "No winner, input file ended" and not "No Winner!". You have left out some statistics that need to be printed at the end.
24762903 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00 Does not compile. Very little code written. Student clearly struggling
24791849 2 0 4 4 12 8 2 4 2 2 2 2 2 6 52 96.30 Excellent project. A joy to mark. You need to handle the error case when the incorrect number of command line arguments are passed in (hint: use args.length()<1 to catch the error). Passed all test cases. The only issue I found with your outputs is that when the input has a "-1" (Quit) you print both "Quit" and "No winner, input file has ended". When a player quits, just print "Quit" to the consol and not "No winner..." then print the statistics. Good style and great comments. Very smart use of functions. Great job!
24807060 2 2 2 4 12 8 2 4 2 2 2 2 2 6 52 96.30 Passed all test cases so your functionality is perfect! Your coding style has one issue, your main function is more than 3000 lines of code. For future projects try break up any repeated sections of your code into functions and then just call these functions where necessary. Otherwise great job so far!
24811971 2 2 3 4 10 8 2 4 2 0 2 2 2 6 49 90.74 Change "Winning" to lowercase in "No Winner, input file ended". Test case 10 failed and test case 15 Failed. Passed all other Test Cases, well done! For test cases 10 and 15 your code adds a "B5" piece to the board. This should not be possible as the external stacks only go up to "B4" and "G4". Your code style is very good, one issue is that you need a few more comments that helps explain your code, especially when someone else has to read your code. Very Good Job so far!
24818992 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00 This student hardcoded an output.
24819026 2 0 2 4 0 0 0 0 0 0 0 0 0 0 8 14.81 Project incomplete. Failed every test case as your code only prints "B1" on the boards and no other pieces.
24823716 2 2 4 2 10 6 0 0 2 2 2 2 0 2 36 66.67 Do not submit your entire eclipse project folder. You need to only submit your necessary .java files (eg. "SU1234567.java" and "In.java"). Good coding style, good use of functions. You are not printing the stacks present on the board correctly. Check your invalid moves correctly, for example you may move a piece on the board onto another blue piece so long as the piece being moved is "bigger".
24911089 2 2 3 4 12 8 0 4 2 0 2 2 2 4 47 87.04 Do not leave commented out lines of code in your final submission, remember to remove debug statements before submitting. Good use of functions and explanation comments. You didn’t print "Invalid move" for input11. When a player makes an invalid move, you need to skip that players move and then carry on, check the output for input15 and input19. Otherwise well done!
24915637 2 2 2 4 0 0 0 0 0 0 0 0 0 0 10 18.52 You did not submit the file "In.java" and your code needs that file to work correctly. You seem to be using the external stacks the wrong way around. The first piece that comes from each blue stack is "B1" then "B2" then "B3" etc. Your code uses "B4" first by mistake. You do not print the stats section. Unfortunately failed all the test cases because the outputs of your code must match exactly to the output given to you.
24923052 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00 No Submission
24952818 2 2 2 4 10 8 2 4 2 0 2 2 2 4 46 85.19 The format of your output printing is wrong and therefore your submission cannot be marked by the test script. Your outputs must match exactly to the given output examples in order to obtain the marks. I changed your printing board functionality and your code then passes most of the test cases. When a player makes an invalid move from the external stack you must be careful not to remove a piece from the external stack, check input2 for this test case. Your main is quite long, try use more functions to break up your coding tasks.
24955574 0 0 1 1 0 0 0 0 0 0 0 0 0 0 2 3.70 You must submit the file "In.java" as well as your code file "SU1234567.java" together because your coded uses functions from In.java. Your code will not compile on the command-line if your file name and class name do not match so make sure they match. All test cases failed, very little code written. This student cleary struggling with the project.
24957941 2 0 1 2 0 0 0 0 0 0 0 0 0 0 5 9.26 No statistics printed. Incorrect printing format for outputs. Failed all test cases. Very little amount of code written.
24959324 2 2 4 4 12 8 2 4 2 2 2 2 2 6 54 100.00 Passed all test cases. Good style, good commenting, great use of functions. Well done!
24971650 2 2 3 4 10 8 2 2 2 2 2 2 0 4 45 83.33 Passed most test cases, well done! Good use of functions, and code structure. Failed test cases 2, 12, 18, 19.
24976261 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00 No Submission
24988421 2 2 2 4 4 2 0 2 0 0 2 2 0 0 22 40.74 Last turn not reached in most cases. "Statistic" should have an 's' at the end. Unnecessary methods such as nextTurn(). Prints Incorrect move instead of Invalid move on occasion - marks given for this case
24991104 2 2 2 4 0 0 0 0 0 0 0 0 0 0 10 18.52 Could not run. Board is accessed before it is initialised.
24999709 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1.85 Multiple files submitted. OOP used. Could not compile. Late submission
25037102 2 2 2 2 0 0 0 0 0 0 0 0 0 0 8 14.81 Missing StdIn file. No statistics displayed. Late submission.
25037935 2 2 2 4 0 0 0 0 0 0 0 0 0 0 10 18.52 Very minimal attempt made.
25054007 0 0 2 2 0 0 0 0 0 0 0 0 0 0 4 7.41 Incorrectly named .zip file. No real attempt made.
25076949 2 2 4 3 12 8 2 4 2 2 2 2 2 6 53 98.15 Input text files should not be submitted. Otherwise very well done!
25092936 2 2 3 2 10 8 2 4 2 2 2 2 2 4 47 87.04 Row numbers were not incremented correctly - had to edit the code slightly in order to pass the test cases.
25136283 2 2 2 2 0 0 0 0 0 0 0 0 0 0 8 14.81 Incorrectly named class/file. Missing In.java file. No actual attempt made.
25191322 0 0 3 1 0 0 0 0 0 0 0 0 0 0 4 7.41 Wrong version of Tic Tac Toe
25200534 0 0.00 No submission found
25206176 2 2 2 4 0 0 0 0 0 0 0 0 0 0 10 18.52 Could not run. NoSuchElementException at line 512.
25222325 2 0 4 2 0 0 0 0 0 0 0 0 0 0 8 14.81 Could not compile. Error: SU25222325.java:2: error: package jdk.nashorn.internal.objects is not visible
25284045 2 2 4 4 12 6 2 4 2 2 2 2 2 6 52 96.30 Attempting to move the other player's piece is an invalid move. Otherwise very well done!
25294695 0 0.00 No submission found
25381008 2 2 3 3 0 0 0 0 0 0 0 0 0 0 10 18.52 Incorrectly named files (.java.java). No statistics shown. Formatting is off at times --> piece is displayed where there should be '|' etc. Very few comments
25387707 2 2 3 4 12 8 2 4 2 2 2 2 2 6 53 98.15 Lots of code commented out, otherwise very well done
25166395 0 0 3 2 0 0 0 0 0 0 0 0 0 0 5 9.26 Multiple files submitted. Project did not run. Calls methods which don't exist such as drawBoard() and hasDraw()
25088521 2 1 2 3 0 0 0 0 0 0 0 0 0 0 8 14.81 Does not compile. Unreachable statements at lines 109, 141, 160. Uninitialized variable stack at line 93 and unitialized variables x,y,row,column at line 94. Can improve with indentation, so that a closing curly bracket is at the same indentation as the statement that has the opening curly bracket, especially when it's extremely long. You don't need to use 'continue' as the last or only entry inside an if statement, and 'break' also isn't useful inside an if statement. A couple of extra spaces here and there (174, 179). Generally closing curly brackets don't appear on the same line as the last statement (Looking at End()). You can simplify line 305 (and similar) if statements by checking if it is not equal to the empty tile. Also, use .equals() for strings, not boolean expressions. Good amount of comments.
25397303 0 0 1 1 0 0 0 0 0 0 0 0 0 0 2 3.70 .zip file not named as <StudentNumber>.zip Multiple files submitted inside a src/ folder, can't tell which one it should be. Submission not named as SU<StudentNumber>.java. Input file is hardcoded, read in multiple times for different turns (Put it into one scanner with the file args[0]). Use of multiple case statements for each individual move option, when you could read in the move and assign options based on that (IE "44" you can use modulus to get the first number for the first array number and then a division to get the second number for the second array number). This will make your code much more compact.
25593803 2 1 3 3 10 6 0 0 0 0 2 2 2 2 33 61.11 Had to remove package src; from the main .java file and In.java. (your only mark lost for formatting of the input files). Good use of variable names and indentation for style, and a few comments to explain what you're doing. You do appear to find a lot more invalid moves than the test scripts. However, one place you considered valid that is actually invalid, is that you can't pick up a piece and move it to the same location.
22903623 2 2 4 3 12 8 2 4 2 2 2 2 2 6 53 98.15 Passed all the tests cases, good job! Just look at your output for when someone wins. "Green Wins!" should be "Green wins!", and same with Blue wins! Slighty inconsistent indentation for if statements, with opening and closing curly brackets on the same line. Also you should not have multiple statements on a single line (IE 484)
23176865 0 0.00 No submission
23219297 0 0 2 1 0 0 0 0 0 0 0 0 0 0 3 5.56 .zip file incorrectly named, code is found in inside multiple folders and is called Main.java, not <StudentNumber>.java Does not compile. Scanner not found at 109, as the import is commented out. 113 isValidMove is misnamed. 115 you can't use player == 1 to pass a variable to a function. Indentation is inconsistent especially at the end, and there's a large amount of empty lines trying to hide the commented code at the end. isValidMove could be written more effectively by passing the array indexes to the function and not needing to make a bunch of case statements, same with updateBoard. No game logic implemented
24697729 2 2 3 4 12 8 2 4 2 2 2 2 2 6 53 98.15 Overall a very nice project. Only complaints would be the style in this case, your indentation is very different at the beginning of the project compared to later. Perhaps take a look at just using inbuilt code formatting from your IDE, it makes it a lot smoother to read. Good amounts of comments in the code, you know how to explain what you're doing. You've also used some additional methods to group sensible pieces of code together.
24710482 2 2 3 3 4 2 0 0 0 2 0 2 2 0 22 40.74 Code compiles, correct .zip format. When outputting statstics, the colour should not be capitalised. You can combine checkWinGreen and checkWinBlue into one method by just passing "B" and "G" as an extra parameter based on who you want to check, and you don't have to duplicate that code then. Brilliant use of methods to split up code into separate parts. Also you left a comment to self at 207 :)
24715034 2 2 4 4 12 8 2 4 2 2 2 2 2 4 52 96.30 You submitted a test.txt, otherwise looks good for .zip contents. Failed case 21 (Picking up a piece causes opponent to win is prevented by placing piece on a a different opponent piece not in winning row) You can improve your code by creating more methods to make your code nicer to read, though you commented what each piece should do nicely. You also used sensible variable names.
24716375 0 0 2 3 0 0 0 0 0 0 0 0 0 0 5 9.26 Package declaration at the beginning of In and the main file, had to remove. Still didn't compile due to incompatible types. No proper handling of the external stacks from what I can see, and not much else in terms of game logic.
24737615 1 2 2 2 0 0 0 0 0 0 0 0 0 0 7 12.96 You forgot to rename your class definition inside your submission file, and misnamed the .zip, and kept __MACOSX inside it. You also didn't include In.java. No attempt at printing anything. args[0] cannot ever be null
24773948 2 2 4 3 12 8 2 4 2 2 2 2 2 6 53 98.15 Nearly perfect. Was a pleasure to read with all the methods to handle different checks. Your style is slightly inconsistent, with the indentation being slightly off in some cases, but you have nice comments explaining what your methods haven't already named. for isEmptyPiece, I would recommend using .equals() instead of == to check equality of strings, since it can cause odd bugs later. Finally, I had to dock a mark just because your output didn't exactly match the spec with capitalisation (EG Green Wins! instead of Green wins!, and Invalid Move instead of Invalid move.
24801429 2 0 4 2 2 2 0 0 0 0 0 2 2 0 16 29.63 .zip and folder name must not have SU in front of it. You can't print the board before checking if args.length == 1 The code looks quite nice, and you have used methods to try and split something up and make the code more readable. You could improve a bit by making the indentation more consistent.
24870889 2 2 3 1 0 0 0 0 0 0 0 0 0 0 8 14.81 .zip file must only contain your student number. Inside, you must only have your java file, named SU<studentnumber>.java, and with the dependencies. Do not push your eclipse project directory. For the board, you must only have two underscores for each board location. There seems to be an extra space on the very first row that you print. Your code style has some inconsistent indentation, especially at the beginning of the while loop, although it's not terrible and awkward to read. Also check the specs for the output for when a player wins, and the format out the outputting. Generally, the formatting made it very difficult to see if anything was happening right in your code, since I would dare say nothing matched except for the very first line of output.
24913707 2 2 4 1 0 0 0 0 0 0 0 0 0 0 9 16.67 The first person I've seen with a manually scanned plagiarism form, congrats :) Your .zip file should not have the SU in front, and just have your student number as the name. It should also only contain the .java file with your code and its dependencies, called SU<StudentNumber>.java, not 2 folders deep inside an eclipse project directory structure. Props to you for having your own file not found exception, although it would help if you didn't hardcode your filepath. Your code style is nice and consistent, and you've nicely commented everything, perhaps even a bit excessive, but I know exactly what you're trying to do at all time. Your program might even successfully do everything in the spec, but you forgot to print the first board after you checked if the file exists. You also mustn't print "Board" above each board you print, and print whose turn it is each time. Same with game statistics and the printing of their stacks. The spec must be followed exactly for the script to work.
24949647 2 2 4 3 12 8 2 4 2 2 2 2 2 6 53 98.15 Your output is only wrong when printing "Statistics external stacks blue player", you forgot to make 'stacks' plural. Comments to explain methods are good. Some inconsistency with return variables in methods, but everything is nice and readable otherwise. It's also not good practice to have multiple statements on a single line, as in your methods that handle the player turns.
24953296 2 2 4 3 12 8 2 4 2 2 0 2 2 6 51 94.44 You had a folder inside of your .zip folder, along with a __MACOSX folder. You had some extra 'hidden' files still left inside the project folder, so maybe copy only the files you need before you zip up to try and prevent that. Also, don't submit .class files. The only two problems with the test cases were your capitalisation when someone wins: "Green Wins!" instead of "Green wins!", and the quit command is not supposed to print that it reached the end of file without detecting a winner. Nice use of for loops to easily intialise variables. Overall, lovely code style, one of the best I've seen. Easy to read, comments explaining what you're busy checking. Consistent indentation all the time.
25055836 2 0 1 3 0 0 0 0 0 0 0 0 0 0 6 11.11 Program does not print outcome (e.g. "No winner, Draw etc"), ouput format not followed precisely as in the spec (Capilization and spacing are important), some logic and runtime errors, comments poorly spaced, only one method used
25059513 2 0 3 2 0 0 0 0 0 0 0 0 0 0 7 12.96 The zip file must be submitted with only your student number as the name. You need to remember to check for an invalid amount of arguments when running your code, look at the code skeleton for an example. With regards, to your code, it looks very nice. You didn't print any statistics though, so you didn't pass any of the test cases. You can also greatly improve your code efficiency by using the inputs and try to dynamically consider their effects instead of hard coding the possible results for each case statement. Consider how similar each case statement is to the other, and see if there is some way to relate the two, since you can write isaValidMove() in a lot very lines. Perhaps ask a demi for some assistance in a tutorial to go over it, trying to get you to think on how it works over a short comment box isn't the easiest. You also nicely used methods to group similar code together, resulting in a very nice main method.
25251341 0 0 0 3 0 0 0 0 0 0 0 0 0 0 3 5.56 Class name and file name must be the same, no comments, very little use of for loops, very large if statements instead of for loops, all code inside of a try catch, no methods used, doesn't use command line arguments (hardcoded a file path instead)
25317229 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00
25459511 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00
22963049 0 0 0 3 0 0 0 0 0 0 0 0 0 0 3 5.56 Program does not compile
23797207 2 2 4 3 0 0 0 0 0 0 0 0 0 0 11 20.37 Class and file should be named SU<Student Number>, many different logic and runtime errors, you should check your program with the provided sample input files to debug your code
24716812 2 2 2 0 10 6 2 4 2 0 0 2 2 6 40 74.07 Included test.txt in zip file, many small formatting errors, such as misplaced capital letters, incorrect punctuation, calling stack 3 stack 2, providing reasons for invalid moves etc., read through project spec carefully and make sure you have the output format precisely correct. Extra board state printed for some cases, no methods used
24828998 2 2 4 0 10 6 2 2 2 2 0 0 0 4 36 66.67 Class should have same name as file, not Main, some stacks in output incomplete, sometimes ouput has "No winner, input file ended" on cases with a conclusion, output punctuation not correct
24831352 2 0 2 4 0 0 0 0 0 0 2 0 0 0 10 18.52 Does not handle incorrect command line arguments, does not print results (e.g. Draw, No winner etc.), multiple logic and formatting errors, very sparsely commented
25132571 2 0 4 0 8 4 0 0 0 0 0 2 0 0 20 37.04 Class name must be same as file name, nothing printed for incorrect argument count, Many formatting, spelling and output errors, the project spec must be followed exactly for output, many logical and runtime errors
25326244 2 0 4 4 12 8 2 4 2 2 2 2 2 4 50 92.59 No output for incorrect number of arguments
23552263 2 0 2 0 8 6 0 2 2 2 2 2 2 2 32 59.26 Initial board state printed before error message for invalid cmd arguments, overall style good and well commented, but indentation sometimes not alligned properly, multiple output formatting errors (single _ instead of __, | before any stack with more than one piece, pieces in reverse order), more methods could be used to shorten code
24949183 0 0.00
25275801 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00 File should be named SU<Student Number>.java, class file included, no code in the Main.java file
25561936 0 0.00
25497650 2 2 1 3 12 8 0 3 2 2 2 2 2 6 47 87.04 Class files included in submission, no methods used, somewhat inconsistent indentation
20354835 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00
22112146 2 2 4 3 10 8 0 2 0 2 2 0 0 0 35 64.81 Many instances of valid moves being called invalid and vice versa, files must be directly in the .zip file, not in a code folder, style is good, well commented and indented
22693394 2 1 4 4 1 0 0 0 0 0 0 0 0 0 12 22.22 @NICOLE: For test cases I gave marks if partially correct. For test cases student does not print all the steps, just final ones. Some are part correct.
22752668 0 0 4 1 0 0 0 0 0 0 0 0 0 0 5 9.26 No way of input for test files.
22778292 2 2 4 4 0 0 0 0 0 0 0 0 0 0 12 22.22 Board prints fine. Something wrong with making actual moves. Please attend to checking if your algorithm works propperly.
22994238 0 0.00
23708565 2 2 3 4 5 5 0 0 2 0 0 0 0 0 23 42.59 Sometimes prints a extra board when answer is correct. Sometimes prints close to correct answers. Please debug and test propperly
24220825 0 0.00
24291056 2 2 2 4 8 2 0 0 0 0 0 0 0 1 21 38.89 Match results and statistics missing. Only final board printing, where is the other information?
24687820 0 0 2 2 0 0 0 0 0 0 0 0 0 0 4 7.41 Not much done. Many errors in code.
24692972 2 0 4 3 8 2 0 1 1 0 1 1 0 0 23 42.59 Please specify if a move is invalid, and if a draw or win occured.
24695351 2 2 4 4 10 8 2 4 2 2 2 2 2 6 52 96.30 Well done! Code near perfect. Just check the output of 'Invalid move' should be 'Invalid Move' and 'wins!' should be 'Wins!'. You did not lose marks for that, only lost marks for 1 test case,
24695394 2 1 4 4 12 6 2 0 2 2 2 2 0 4 43 79.63 Make sure that the game can run in the terminal, I saw you had a package and I assume that you used an IDE. Mostly well done. Make sure to have 'Picking up of pieces resulting effects' working propperly and test your project more because there are some small things wrong.
24695424 2 2 3 4 12 8 2 4 2 2 2 2 2 6 53 98.15 Almost perfect! Only problem was formatting, formatting was a little off and that was the only mark lost.
24695742 0 0 3 0 0 0 0 0 0 0 0 0 0 0 3 5.56 Please zip folder propperly. There was zip folders in after I unziped the first one. Your code does not seem to implement the algorithm.
24695777 2 2 3 3 0 0 0 0 0 0 0 0 0 0 10 18.52 Please don't use .rar. Rather use zip. I could not easily unzip your submission. Please rename your class correctly. I saw you had 'Package' in your code, suggesting you used an ide, make sure it can work in the terminal also please! Test propperly and make sure you get correct output. Check your algorithms again and make sure you have the logic in tact to make moves.
24695823 2 2 3 4 8 8 2 4 2 0 2 2 2 6 47 87.04 Please clean up style. Other than that, well done. Remember 'Illegal move counts as a skipped turn'
24696773 2 2 4 4 8 8 2 4 2 2 2 2 2 6 50 92.59 Well done!
24696781 2 2 3 4 11 8 2 4 2 2 2 2 2 6 52 96.30 Well done! Too much code commented out, please tidy that up
24696854 2 2 3 3 12 8 2 4 2 2 2 2 2 6 52 96.30 Well done. Coding style needs improvement. Formatting of stack output not perfect, but not incorrect. Please fix that!
24697354 2 2 4 3 12 8 2 4 2 2 2 2 2 6 53 98.15 The class name was incorrectly named which caused compilation errors. Please name the class "SU########.java"
24699039 2 2 4 4 12 8 2 2 2 2 2 2 2 6 52 96.30 Passed 20 testcases, failed 1 testcase. The testcase that failed was in the case that you try to move your opponents piece on the board instead of your own. Your code allowed the move but it is actually an invalid move. Good style and comments. Well done.
24699829 2 2 4 0 12 8 2 4 2 2 2 2 2 6 50 92.59 Your naming convention is incorrect. Your class name was "Main" when this is meant to be the name of your SU#######.java file. There was also printing errors as where your code should print "Statistics external stacks green player" it prints "Statistics external stacks blue player". The green player hence had no statitics and the blue player had 2 sets of statics. Another printing error was you wrote "Statistics external stacks blue player" instead of "Statistics external stack blue player". Another spelling error was that you spelt "wins" with a capital letter. Please go and correct all the errors for the next hand in. Once I changed all the above you passed 21/21 test cases so well done.
24700746 2 2 3 1 4 8 0 2 2 2 2 0 2 6 36 61.67 The case statement "case '1' || '2' || '3':" does not work. Please correct this for the next hand in. Another problem was that when the Green player uses the stack it often prints the wrong number after the G. The actual stack is correct but when you print the number it is not. Your stack rules also do not comply with the spec as if G1 tried to go on a position where B3 was, your code results in an invalid move but this is a valid move. Late submission (-5% per 12h late)
24700789 2 1 2 2 12 3 2 2 2 2 2 2 0 4 38 70.37 Incorrect column and row naming. You also did not add "__" for the bottom row, please correct this. You need to check that there are the right number of arguments given when running the program. Some valid moves result in invalid moves. Passed 15/21 testcases. Draw results in an invalid move.
24703907 1 2 2 0 7 0 2 2 1 0 1 2 0 5 25 46.30 Your board must only print once per move, not twice. Your code does not say if someone drew/quit (it just quits). The statistics are wrong they should output what is left in a stack and not what is used, they should also only output once. Invalid moves dont work.
24706825 2 2 4 3 12 8 2 4 2 2 2 2 2 6 53 98.15 Passed 21/21 testcase. Good styles and comments. The second package is not necessary and caused compilation issues so just remove this.
24708623 2 2 4 4 12 8 2 4 2 2 1 2 2 6 53 98.15 Passed 20/21 testcases. Failed testcase 16. Only mistake is printing "No winner, input file ended" for a quit command, this can be ommitted.
24709077 - - - - - - - - - - - - - - 0 0.00 Could not find student on sunlearn
24709395 2 2 4 4 12 8 2 4 2 2 2 2 2 6 54 100.00 Passed 21/21 test cases. Good styling and use of comments.
24715980 2 0 2 2 12 8 2 4 2 2 2 2 2 6 48 88.89 Incorrect naming convention, please use SU########.java. The class name was also incorrectly named which caused compilation errors. Passed 16/21 testcases due to printing Stack2 on the same line as Stack1 if this is changed you pass 21/21. Also lost marks due to style and hardcoding. Also do not account for the number of command line arguments.
24717274 2 2 2 4 10 4 1 4 2 2 2 2 0 4 41 75.93 Pass 13/21 testcases. Test cases failed due to placing a piece on another players piece. Also wrong piece moved occurs. Lost marks for styling. Draw did not work.
24718076 2 2 4 4 12 8 2 4 2 2 2 2 2 6 54 100.00 Pass 21/21 testcases. Good styling
24718238 2 2 2 0 12 5 2 4 2 2 2 2 0 6 43 79.63 The class name was also incorrectly named which caused compilation errors, please name it SU########. The statement "Invalid move" does not print for invalid moves. Also randomly prints "B1|" in statistics. Also prints the board twice for some testcases. Draw did not work.
24726362 - - - - - - - - - - - - - - 0 0.00 No submission
24726370 2 2 2 0 10 2 2 2 2 2 2 0 0 4 32 59.26 You did not print the row or column number. Your code doesn't read the last move of an input file which caused you to lose most of your marks and caused you to fail all the testcases. Lost marks due to styling.
24731048 2 2 3 1 12 8 1 2 2 2 2 2 2 6 47 87.04 Passed 15/21 testcases due to printing errors in statistics. In the statistics information, extra output is printed that caused you to lose marks. Illegal move where Placing a piece from the external stack onto a piece on the board + game continues. Also failed moving a piece on the board to cover another piece on the board - valid sizing .
24735728 2 2 2 3 12 8 2 4 2 2 2 2 2 6 51 94.44 Passed 20/21 testcases. The only problem was you printed "No winner, input file ended" after a quit which shouldn't be there.
24736880 2 2 4 4 6 0 0 0 0 0 1 1 0 0 20 37.04 Unessecary colons, capitalization issues and missing punctuation in print statements. Pieces are being placed incorrectly for : moving pieces from stacks to the board, moving onto opponents pieces, covering an opponent's piece. Printing extra information above your board. Stack ordering isn't 100% correct. ArrayIndexOutofBoundsException when testing overlapping stacks and ordering rules. Missing error message for invalid moves.
24737542 2 2 3 4 10 8 2 4 2 2 1 2 2 6 50 92.59 Stacks aren't printed correctly. example: "Stack 2: B1 G2 B3 B4" instead of "Stack 2: B2 B3 B4". Outputs the message "No winner, input file ended" when trying to quit a turn.
24737623 2 2 4 3 12 8 2 4 2 2 2 2 2 6 53 98.15 Used Stack data structure. Otherwise a solid effort.
24739685 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00 Compilation Errors. Couldn't compile or open the java file.
24744115 2 2 4 4 12 8 2 4 2 2 2 2 2 6 54 100.00 Minor print statement differences, but other than that a solid effort. Make sure your prints statements are exactly the same (capitalization, punctuation, etc.) Note from nicole to marking demi, do not take marks away from this student for not having their .java file named as their student number. Thanks.
24744417 2 2 0 4 12 8 2 4 2 2 2 2 2 6 50 92.59 Used OOP data structures. Output format is not to spec, despite everything working correctly, hence the 0 for style. Make your output look like the required output.
24754633 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00 No testcases ran, infinte looped. Quite a lot of work that needs to be done.
24764302 2 2 2 4 6 3 1 1 0 1 1 1 1 1 26 48.15 Capitalization and punctuation issues in print statements, Stacked pieces aren't printing entirely and not on a newline per stack found.
24767638 2 2 4 4 12 8 2 4 2 2 2 2 2 6 54 100.00 Impressive, very impressive.
24770183 0 0 2 4 8 8 2 2 2 2 2 0 0 6 38 70.37 You're input wasn't using args, it was set to look at "input17.txt". Be more careful next time. :)
24774898 2 2 1 2 4 2 0 0 2 0 0 2 0 0 17 31.48 Java file wasn't named correctly (public class Main instead of public class SU#######...), Invalid moves don't work, stacking pieces don't work, A few exceptions are thrown.
24775649 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00 Doesn't compile due to input implementation not working. Try using readInt() or find a way to convert Strings to int.
24776335 2 2 2 2 0 0 0 0 0 0 0 0 0 0 8 14.81 Doesn't output anything or throws NumberFormatExceptions. Tried to fix but wasn't able to do so without extra effort.
24781339 - - - - - - - - - - - - - - 0 0.00 Could not find student on sunlearn
24789682 2 2 3 3 10 8 2 2 2 2 2 2 2 4 46 85.19 Row and column names are spaced and capitalised incorrectly. Extra spaces between columns on the board. Your Invalid Move check isn't working or is missing. Your stacked piece print statements isn't working correctly and isn't spacing the pieces correctly.
24791040 2 2 3 3 12 8 2 4 2 2 2 2 2 6 52 96.30 Print statements were missing '!' and column names were capital 'C' instead of 'c' as well as "Invalid move" printing as "Invalid Move". Otherwise a solid effort.
24791334 2 2 3 3 10 6 0 0 2 2 2 1 1 2 36 66.67 Invalid move check isn't working 100%, Some capitalization issues in print statements.
24796573 2 2 3 3 11 8 2 4 2 2 2 2 2 5 50 92.59 Some minor print statement issues (missing words, capital letters etc.), Some stacks weren't printing all correct pieces. Note from nicole to marking demi, do not take marks away from this student for not having their .java file named as their student number. Thanks.
24801844 0 0.00 Student not on SUNLearn
24802824 2 2 4 4 12 8 2 4 2 2 2 2 2 6 54 100.00 Very well done! Great style.
24804207 2 1 3 3 0 0 0 0 0 0 0 0 0 0 9 16.67 It's not necessary to zip the individual files. Classname should be renamed to match the file name. Board should not be printed when there are incorrect number of command line arguments. Multiple formatting errors. There should be spaces between column headings and after row headings. For empty board cells, use double underscores("__") instead of one. Inconsistent indentation around the first if statetement.
24806935 0 0.00 No submission
24814245 2 2 4 1 8 8 2 4 2 2 2 2 2 6 47 87.04 Your ZIP file must not contain any .class files or testing files. "Green Wins!" should be "Green wins!" and "Blue Wins!" should be "Blue wins!"
24817449 2 2 3 4 12 8 2 4 2 2 2 2 2 6 53 98.15 Good job! Avoid using very long lines and if statements that have conditions which span over multiple lines. This reduces code readability.
24827177 2 2 4 4 12 8 2 4 2 2 2 2 2 6 54 100.00 Well done. Good style. Just delete the empty lines at the end of file
24837180 2 2 4 1 10 6 2 4 0 2 2 2 2 2 41 75.93 Use .zip instead instead of .rar. Column and row headings should be in lowercase. Handle illegal moves.
24837954 2 2 2 4 0 0 0 0 0 0 0 0 0 0 10 18.52 Output had a lot of unnecessary spaces between statistics lines. Please peruse the given sample files. Inconsistent indentation in some places.
24845795 2 2 4 3 10 8 0 0 2 2 0 0 2 0 35 64.81 Classname should be changed to match filename. Most of the failed testcases are due to output not being correctly formatted and not handling cases where a piece is picked up from the board. Where there is an invalid move, "Invalid move" is printed more than once. Game statics should also be printed once at the end of the game.
24846821 2 2 4 3 12 8 2 4 2 2 2 2 2 6 53 98.15 Amazing work! Just remember to include the necessary stdlib files in the next submission.
24857122 2 2 3 1 6 8 0 0 2 0 2 2 0 2 30 55.56 Rename classname from "Main" to "SU24857122". Incorrect game statistics. You printed external stack pieces in reverse order. "Invalid Move" should be "Invalid move". "Blue Wins" should "Blue wins". Code has uneccessary open lines.
24860476 2 1 3 0 12 8 2 2 2 2 2 0 0 6 42 77.78 You are not supposed to print out a board if there are incorrect number of commandline arguments. Your implementation is mostly correct. However, you made a lot of mistakes. The line "No winner, input file ended" should be printed at the beginning of the game statistics and not at the end. I had to change this for you to get some marks. "Invalid Move" should be "Invalid move". "Blue Wins" should be "Blue wins!", the same applies for the green player. The condition in your if statements which start on line 606 should be (if win == "Blue Wins!") for them to correspond to changes you make in your win() function.
24862940 2 2 4 3 12 8 2 4 2 2 2 2 2 6 53 98.15 Cases for switch statements from line 262-266 should be followind by a colon(':') and not a '->'
24864080 0 0.00 No submission
24864854 2 2 4 4 0 0 0 0 0 0 0 0 0 0 12 22.22 Game statistics should be printed at the end of the game and not after every move. Please see sample files for examples.
24867837 2 2 4 3 6 6 0 0 2 0 0 2 0 2 29 53.70 Rename your program file to SU<studentnumber>.java. Project incomplete and does not run.
24873764 0 0.00 No submission
24874817 2 2 2 3 0 0 0 0 0 0 0 0 0 0 9 16.67 Please check the description of the directory structure so that you may correct it for the next submission. Additionally, it is not necessasry to submit sample input files and .class files should not be submitted. Code indentation is inconsistent. To correct the indentation you can use the auto-format feature of whichever IDE you are using, such as Eclipse. See if you can move some more of your code into different functions for the next submission, doing so will simplify your code. There are a lot of conditional statements that you might be able to simplify by using loops. Please print the contents of stacks without the square brackets surrounding them, the output should match the sample output. Code does not print the message required before the statistics. Sometimes the winning message is printed when nobody has won. When printing the pieces that are on the board, sometimes duplicate pieces are printed and there are some underscores that shouldn't be there. For one of the test cases an invalid move was given but the message was not printed. For a different test case the invalid move message was printed when the move was valid. For another test case there was a missing piece from one of the green external stacks. The message printed when someone has won is not formatted correctly, it should be exactly as it is in the sample output. There is duplicate code (if, else if for the switch case statements) that could be replaced by function calls.
24877247 2 2 3 4 12 8 2 4 2 2 2 2 2 6 53 98.15 Good style overall, however there are a few inconsistencies with regard to indentation. Additionally, just incase you don't know, if you are using an IDE there is likely a feature that automatically formats your code.I also noticed that the error message for the incorrect number of arguments is slightly different to the one from the code skeleton so maybe change that message. Aside from those two things your code is great. Well done.
24893285 2 2 4 3 6 4 0 2 0 2 2 2 0 4 33 61.11 Please check the project specification and ensure that your program output matches the sample output exactly. I have not listed all the formatting changes I've made because there are too many. Additionally, the name of your .zip file and the directory created when it's contents are extracted should not have the prefix "SU", only your .java file should have that prefix. Additionally your code prints out the board for the iterations in which invalid moves are attempted, which should not happen. Your code sometimes detects an invalid move when the move is actually valid. When a player tries to make a certain type of invalid move your code throws an EmptyStackException. The move is likely invalid because the player is trying to access an empty stack. The code doesn't detect that the blue player has won after a piece is moved that was blocking a winning configuration, by being on top of a given piece. A tie/draw is not detected in one of the files because a valid move is interpreted as an invalid move. Well done for using functions, you used them well. You might be able to move some more of your code into separate functions, such as the checks of the different directions but that's a personal choice for you to make. Some of your code could be made simpler, such as the code inside movePiece(), by reducing the number of chained method calls. This isn't essential and you haven't lost any marks because of this, I just think it might make the code easier to read. Lastly, consider naming your coordinate variables something a bit more descriptive. row and col with a number at the end, if you need one, are potential choices. x and y are also options. The reason I recommend this is that pos1 and pos2 or position1 and position2 don't tell you which variables are vertical and which are horizontal, and this makes it a bit more difficult to understand the code. Overall, it seems like you know what you're doing, although there are a few issues. Well done.
24899518 2 2 3 3 12 8 2 4 2 2 2 2 2 6 52 96.30 The word "the" is missing from the message printed before the statistics. Good style, although there are two indentation inconsistencies. You may already know this but using the auto-format feature of your IDE will help you maintain consistent indentation, so be sure to use the auto-format one last time when you're finished making changes to your file. For the next submission, I recommend moving more of the code into separate functions, as this will simplify it quite a bit. However, it is easy to read and there are comments in all the right places. Great job.
24900303 2 2 3 3 8 6 0 4 0 0 0 2 2 2 34 62.96 Extra pieces are printed for some of the test cases that involve moving pieces or invalid moves. There was also a missing piece after an invalid move. A lower case "m" should be used for "Invalid move". The board should not be printed before the message for invalid arguments. I recommend a brief explanation of what the variable "has4NumTimes" is used for and a comment above the first "check" that states what is being checked. Lastly, I recommend becoming familiar with functions so that you can use them for the next submission. They will simplify a lot of the code.
24908134 2 2 3 4 12 8 2 4 2 2 2 2 2 6 53 98.15 Very well done. The only thing I think is worth mentioning is that there is some inconsistency in the number of empty lines at the end of your functions and before the return statement, if there is one.
24911895 0 0.00 No submission
24914649 2 2 4 3 12 8 2 4 2 2 2 2 2 6 53 98.15 Your student number should be the name of your directory. Please check the project description to find the correct directory structure. There should not be a full stop after "No winner, input file ended" and the word "stacks" is missing from the message for printing out the green external stacks. Additionally, you could reduce the amount of code required for the methods that check for a winner or check for three of the same type of pieces in a row. Those conditional statements are quite long and I think the code would be easier to reason about and understand if they were a bit shorter. Overall, great work. Well done.
24917540 2 2 4 3 12 8 2 4 2 2 2 2 2 6 53 98.15 Some of your functions end with empty lines and others do not, rather be consistent with the number of empty lines you use. The initial, empty, board is printed out before the error message for an invalid number of arguments. If there is an invalid number of arguments, only the error message should be displayed. Everything else is correct, great job.
24926205 2 2 3 2 12 8 2 4 2 2 2 2 2 6 51 94.44 Your class name does not match the filename and this causes a compilation error. Your .zip file should not have the prefix SU, only your .java file should. The initial, empty, board should not be printed before the error message for invalid arguments. A lower-case "m" should be used for "Invalid move". A lower-case "w" should be used for "Blue wins!" and "Green wins!". "No winner, input file ended" is printed after "Quit" when the quit command is given, which should not happen. Moving some more of the code, that manages the placement and movement of pieces, into functions and writing a brief comment that describe the different scenarios that are being handled could make the code easier to understand. Well done.
24933414 2 2 2 4 0 0 0 0 0 0 0 0 0 0 10 18.52 Rather use loops when you are checking every position in the array. It will be less time consuming for you to type and easier to read and understand. You should not submit the sample input files. The initial board should not be printed if there is an invalid number of arguments. The wrong pieces are placed on the board and the pieces left in the external stacks are incorrect. The message for a draw is not printed when there is a draw. There was an ArrayIndexOutOfBoundsException on line 68 for one of the test cases. "Quit" is not printed when the quit command is given. "Invalid move" is not printed when there is an invalid move. "Blue wins!" is not printed when the blue player wins. Empty lines should be used consistently. Lines 299-301 are empty for no apparrent reason, and so are some other earlier lines, although most of your code doesn't have more than one blank line between non-empty lines. If the variable play1 represents a player, it would make more sense to name the variable player1. It is not much longer and the meaning is more clear. Lastly, some of the indentation and placement of curly brackets is inconsistent. Auto-formatting your code is an easy way to solve this problem.
24943215 2 2 1 3 0 0 0 0 0 0 0 0 0 0 8 14.81 Your class name does not match the filename and this causes a compilation error. I'd advise using loops to condense a lot of the code you have. It would be quicker to write, easier to reason about and easier to understand. The long chain of "else if" statements is difficult to follow, understand and reason about. There is a significant amount of what is essentially duplicate code that could be replaced with function calls and loops. When printing the external stacks, do not surround the elements with square brackets. The output should look identical to the sample output. The message for printing out the external green stacks is incorrect. The initial, empty, board should not be printed before the error message for an invalid number of arguments.The statistics are printed out after every board is printed, which should not happen. They should only be printed at the end. There is some inconsistent indentation and placement of cruly brackets and there are few comments.
24965316 0 0.00 No submission
24967114 2 0 4 3 12 8 2 4 2 2 2 2 2 6 51 94.44 Consider moving some more of your code into separate functions to make it easier to read and understand. "Game Board" should not be printed. The error message for an invalid number of arguments is not printed. There should be an exclamation mark after "Draw". The code on line 322 would be incorrect if it ran for this set of test cases. Overall, well done.
24973629 2 0 3 3 10 6 2 4 0 2 2 2 2 2 40 74.07 The message for the statistics of the pieces on the board is missing the word "present". There should not be a ":" after the external stack statistics messages. The statistics message for the stacks of each player should not have the word "for" in it. Use a capital i for "Invalid move". The message "Invalid move" explicilty written and printed 26 times, consider using a function and arranging your code so that there are not 26 different combinations of code execution that result in printing this message. Use a capital "S" for "Stack" when printing the external stacks. The external stacks are printed backwards. There are two spaces between each element of the external stacks but there should only be one space between them. A space should be printed between the pieces that are currently on the board when printing their statistics. Use a lower case "w" for "wins!". There should be a space after row labels, (for example, "r1 " and not "r1"), when printing the board. The code that prints the winning messages occurs about 7 times for each player, so maybe try to change your code so that it only needs to occur once per player, or perhaps even once overall. A function, with the correct argument or arguments will likely be helpful for this. Sometimes invalid moves are not detected. Before you try to fix this, I recommend that you first move blocks of code that do particular tasks to their own functions. This will likely make the process of debugging a lot easier. I see that you've already done this for some tasks, but I think you could do this for a few more. Also, try to use functions to help you reduce the number of consecutive if and else if statements that you have. You want your code to be modular. That way you can think about each chunk of code individually. At the moment, the number of consecutive conditional statements makes the code more difficult to understand. Additionally, if your code is modular, it will be easier to verify that all the different cases that could be encountered are handled correctly. Overall, well done.
24983780 2 2 2 3 0 0 0 0 0 0 0 0 0 0 9 16.67 There is some inconsistent indentation. If you are using Eclipse, pressing CTRL+SHIFT+F should auto-format your code. This should fix any inconsistent indentation. "Stacisticks" should be "Statistics". The method updateBoard() actually prints the board, so perhaps it should be renamed. The program output is not formatted correctly, it should look exactly like the sample output.
25002112 2 2 4 3 0 0 0 0 0 0 0 0 0 0 11 20.37 There shouldn't be a _MACOSX folder in your .zip file. Your class name does not match the Java filename and this causes a compilation error. I don't think you're supposed to have a package declaration. It also causes a compilation error because "In" cannot be found. Every test case fails because of either a NullPointerException or an ArrayIndexOutOfBoundsException in either main() or one of the functions it calls. Lastly, you could consider using "global" variables for some of the variables that are used in many different methods. This would substantially reduce the length of the method signatures, which would make the code easier to read. It would also be easier to call the functions, since you wouldn't have to provide them with such large lists of arguments.
25020862 2 2 2 4 12 8 2 4 2 2 2 2 2 6 52 96.30 Comments could be a bit more descriptive, "for loop for board" doesn't really bring provide any extra information. Try make a few more functions to simplify the code further for the next submission. Some comments giving a brief explanation of some of the larger "if else" parts of the code would be helpful. Also, maybe try find a way to use fewer conditions so that it is easier to read and reason about. Some inconsistencies in code formatting. You can use CTRL+ALT+L or CTRL+SHIFT+F to Auto-format. Use empty lines consistently. Overall, well done.
25025988 2 2 3 4 12 8 2 4 2 2 2 2 2 6 53 98.15 Works well. Variables could better names such as num on line 49, a more descriptive name will make it easier to understand.
25041134 2 0 3 3 12 6 2 4 2 2 2 2 2 6 48 88.89 No comments. When printnig the board you have to start with a blank board tehn start the game.Check the Command-line outptu format of the project document. Uploaded file contained unnecessary flies.
25056425 2 2 3 4 12 8 2 4 2 2 2 2 2 6 53 98.15 Comments need to be more descriptive. Error in output, "Statistics for external stacks blue player " is printed instead of "Statistics external stacks blue player "
25059726 2 2 4 2 10 6 0 0 2 0 2 2 4 2 38 70.37 Multiple errors in output texts. Capital Rs are used instaed of small r's, could not find a simple fix for the problem for testing. Capital Is instead of small i in No winner, Input file ended.
25062484 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00 No submission
25063529 2 2 3 3 6 4 0 0 2 0 2 0 0 2 26 48.15 Multiple out put errors. When printing statistics the stacks must run from 1 onwards and not start from 0 (Stack 0: B4 is incorrect). Invalid move not Invalid Move!. More comments are needed. Many stats are misprinted as B1G1 instead of B1 G1.
25070290 2 2 4 4 0 0 0 0 0 0 0 0 0 0 12 22.22 Every single test case had exception of either array out of index or string index out of bounds. I think these errors are being caused by when you are removing moves from your moves list, eventually it gets to a string of length 1 and you should check for this and adjust your code accordingly.
25081551 2 2 3 3 8 0 0 0 0 0 0 0 0 0 18 33.33 Errors in printing statistics. I would suggest rereading the Command-line output format section of the requirements. The Statistics of each stack present on the board must be printed from the top left corner of the board, going row by row.
25116835 2 0 3 3 10 6 2 4 2 0 2 2 2 4 42 77.78 Errors in printing board, it should be c1 c2 c3 c4 not be |c1|c2|c3|c4|. Few times where the statistics were printed wrong. End messages such as Blue Wins!. which should be Blue wins!. Please recheck all out put messages and make sure you have uppercase and lowercase letters where they should be.
25135201 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00 No submission
25137018 2 0 2 3 12 8 2 4 2 2 0 2 2 6 47 87.04 Make sure that you use uppercase and lowercase letters properly, e.g Invalid Move should be Invalid move. Code needs comments. Your error handling must not print a blank board before the error message.
25160435 2 2 4 2 12 8 2 4 2 2 2 2 2 6 52 96.30 Your are misprinting some of your output messages such as "Statistics external stacks of the green player", which should be "Statistics external stacks green player". Otherwise all else is good, nice use of the stacks. You have to name your main class the same name as the file (SU[Student number])
25160931 2 0 4 3 6 0 0 0 0 0 2 0 0 0 17 31.48 Your boards are being miss printed, where it should print "B1|G1|__|__|" it actually prints "B1 G1 _| _|". Alot of your statistics were missing for the Statistics for each stack present on the board section. If your files are not going to be run in a certain file i would suggest removing the package decleration at the beginning of your files and would suggest running the code with a terminal to check if it all works fine.
25161806 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00 There was no attempt made to code the project.
25164759 2 0 4 3 10 8 2 4 2 2 2 2 2 4 47 87.04 You are printing "Invalid Move" instead of "Invalid move. In some cases your program didnt detect an invalid move when one was made.
25165119 2 2 3 3 12 8 0 4 0 2 2 2 2 6 48 88.89 Board is printing incorrectly, it is printing "B1 G1 _| _|" when it should be printing "r4 B3|__|__|G2|". Misprint of game messages, "Invalid move" should be printed instead of "Invalid Move" for example. Turn numbers are not needed, you can remove them. Many unnecassary files were included in the zip file.
25173251 2 0 3 4 12 8 2 4 2 0 2 2 2 6 49 90.74 Could use more descriptive comments and just more comments overall. Code had one problem were it printed the stack in revers order, it printed "Stack 2: B4 B3 B2 B1" instead of "Stack 2: B1 B2 B3 B4".
25182994 2 2 3 3 4 0 0 0 0 0 2 0 0 0 16 29.63 File is mislabeled as Main instead of SU<student number>. The Main tictactoe = new Main(); is not necessary as this is essentially you creating an object out of your main class, which you should not do, i would suggest relooiking at using methods in your code and rewrite your code without using objects. You also had a few Empty stack exceptions which need to be solved. On a few occasions your code would print the last board twice. Your program thought that an invalid move was played multiple times when there was no invalid move played.
25187007 2 2 2 1 0 0 0 0 0 0 0 0 0 0 7 12.96 Does not compile. Switch statement does not contain closing '}'. Case 6 in switch statement does not have ':'. public class name and .java file name are different. Didn't include necessary stdlib files. After fixing these issues, no test cases work correctly.
25198254 2 2 3 2 0 0 0 0 0 0 0 0 0 0 9 16.67 Not all statistics included in the output so all test cases fail, and statistics that were included were usually missing some output. Usage error prints a blank board before the error, only the error should be displayed. Messages for winners are in the wrong format. Output should not display the board again for invalid move. Wrong message for quit command. Many test cases fail due to ArrayIndexOutOfBoundsException. Main .java file should be SU<student_number>.java and not Project114.java
25201247 2 2 4 4 12 8 2 4 2 2 2 2 2 6 54 100.00 Passes all test cases.
25218999 2 0 2 1 0 0 0 0 0 0 0 0 0 0 5 9.26 Only include the stdlib files that you used, not the folder with all of them. Multiple long, complex if statements and none with an explanation as to what they do (no meaningful comments in the code). No usage errors for incorrect number of command line arguments.
Order and output of statistics have a different format, and the external stacks are in different order and contain the wrong content. Redundant code, much of which can be fixed with for loops.
25227041 2 2 4 2 12 8 2 4 2 2 2 2 2 6 52 96.30 Only include the .java files needed for your project. Don't include the test cases or .class files, and don't include out folder. Only display the usage error when incorrect number of command line arguments (don't display a blank board first).
25233653 2 2 3 1 0 0 0 0 0 0 0 0 0 0 8 14.81 Name of .zip file should be <Student_number>.zip. File with project code should be named SU<student_number>.java. Zip file should include stdlib files needed to run the prgram (In.java was not included). All test cases fail: in.readString() will read one string seperated by a space/new line, it will not read the entire. eg. If the line is "1 1 1", in.readString() will return "1" and not "1 1 1".
25272772 2 2 4 3 10 6 2 4 2 2 0 2 2 4 45 83.33 Project file should be named <student number>.java. Change output string in line 220, as it currently has "on board the board.". Remove print statement from line 59. Make sure output strings match exactly to what is indicated in the project spec, most output strings have an extra word/punctuation or are capitilaized unnecessarily. Statistics being printed twice on quit command.
25275917 2 0 2 3 4 2 0 0 0 0 2 2 0 0 17 31.48 Should be submitted as <student_number>.zip. Don't include test caes and class files. Redudant code that can be fixed with for loops. Doesn't display usage error for incorrect number of command arguments. Invalid move detection not always correct. Invalid Move shouldn't reprint the board. Layout of "Statistics for each stack present on the board" is sometimes incorrect.
25280635 2 2 4 2 0 2 0 0 0 0 0 0 0 0 12 22.22 Public class should have the same name as the .java. All test cases print that there is a winner, even if there isn't. If there is a winner, the correct winner isn't always displayed. Format and content of statistics is incorrect. Many external stacks get a B5 (which shouldn't exist). Follow the project spec exactly for what to output.
25293273 2 2 4 4 10 8 2 2 2 2 2 0 0 2 42 77.78 Win conditions need to be fixed (sometimes wins/draws aren't detected)
25303384 2 2 2 1 0 0 0 0 0 0 0 0 0 0 7 12.96 Submit a zip file with all the required .java files to run your project. The project file should be named SU<student_number>.java. No test cases run.
25305123 2 2 4 4 12 8 2 4 2 2 2 2 2 6 54 100.00 Perfect
25311387 2 2 4 1 8 8 2 4 2 0 0 2 2 4 41 75.93 Don't include test cases or .class files in submission. Project file should be called SU<student number>.java. Doesn't handle invalid/illegal moves.
25322931 2 2 3 3 2 0 0 0 0 0 0 0 0 0 12 22.22 Public class name should be the same as .java file name. "Statistics external stack" should be "Statistics external stacks". Statisitcs output has the wrong order. Invalid moves aren't accounted for.
25325981 2 2 4 3 12 8 2 4 2 2 2 2 2 6 53 98.15 Change line 85 from 'B4' to 'G4'. Change 'Invalid Move' to 'Invalid move'. All test cases pass.
25337971 2 2 4 3 12 8 2 4 2 2 2 2 2 6 53 98.15 Don't include class files in submission. All test cases pass.
25349589 2 2 4 3 8 8 0 2 0 0 0 2 2 0 33 61.11 Make sure output strings match exactly to what is indicated in the project spec, most output strings have an extra word. Statistics output wrong content.
25356208 2 2 4 2 4 0 0 0 0 0 0 0 0 0 14 25.93 Public class name should be the same as .java file name. Should print a blank board first before the rest of the boards. Output for winner should be printed before statistics. Not necessaary to say "Main." when calling functions in the same class. Some test cases fail due to StringIndexOutOfBoundsException. Print "Invalid move" instead of "Illegal Move!". Don't include unnecessary folders in submission.
25362143 no 0 0.00
25403389 2 2 3 4 12 8 2 4 2 2 2 2 2 6 53 98.15 good work, lost 1 mark(s) on style.would be nice to have modularity, code
doesnt read nicely.
25433423 2 2 3 2 6 4 0 4 2 2 2 2 2 0 33 61.11 Used Stack class,
25440063 2 0 4 3 8 8 2 4 4 4 0 2 0 6 47 87.04 The formatting is off and displays own messages e.g.,
No one one the game, input file ended vs No winner, input file ended
25447246 no 0 0.00
25452835 2 2 4 4 10 8 2 4 2 0 2 2 2 2 46 85.19 Solid work. code reads nicely. there are few cases that you dont quite get right
like tests 2, 19, and 21
25455958 - 0 0.00
25460129 2 0 4 2 4 2 0 2 0 2 0 2 0 2 22 40.74 The formatting is off. Only displays blue stack stats. throws a couple of null pointer
exceptions, breaks the stack ordering rules. Please put more hours on the
project. No that far off.
25471392 2 0 4 3 6 4 2 0 2 2 0 0 0 0 25 46.30 The formatting is off. The submission isn't that far off. Please put
in a few hours into the project to turn things around. :-)
25474669 2 2 0 0 0 0 0 0 0 0 0 0 0 0 4 7.41 Basically submitted skeleton code
25476785 2 2 4 4 6 2 2 0 2 0 0 0 0 0 24 44.44 Please put into a few more hours to turn things around.
Its not that far off. Fix the output format also, Check your array indexing too
25481150 2 0 3 2 6 2 2 2 2 0 0 0 0 2 23 42.59 Doesnt follow the output foemat. Throws a couple of null pointer and array out of
bounds exceptions on some tests. Doesnt print stats. Please put in more hours
you can turn things around.
25481207 2 2 4 3 6 6 0 2 0 2 2 2 0 0 31 57.41 Stats displayed are wrong. Please put in a few more hours to turn things around.
Nice attempt.
25493515 2 2 4 4 12 8 2 4 2 2 2 2 2 6 54 100.00 Great work :-)
25500260 2 2 4 2 12 8 2 4 2 2 2 2 2 6 52 96.30 Nice work. :-). Fix your output format
25519913 - 0 0.00
25530194 2 2 4 4 12 8 2 4 2 2 2 2 2 6 54 100.00 Great work :-)
25531123 no 0 0.00
25533002 2 1 2 3 0 0 0 0 0 0 0 0 0 0 8 14.81 Only plays green pieces, goes to G8 somehow, no tests passed
25561626 2 2 4 0 8 4 0 4 0 0 2 2 2 2 32 59.26 Used Stack.java which is interesting, output incorrect for all test cases, no comma in printing the stack, also from should print from 1-4 not 4-1
25574507 0 0.00 No submission found
25602101 2 2 3 1 6 6 2 4 2 2 0 2 2 2 36 66.67 Marks removed as output is weird, doesn't print last board, but is correct
24747211 2 2 3 3 0 0 0 0 0 0 0 0 0 0 10 18.52 No test cases passed, output is odd
24752231 2 2 3 2 8 0 0 0 0 0 0 2 0 0 19 35.19 Array out of bound exception on most test cases. Index -1 out of bounds
24857920 2 2 3 3 0 0 0 0 0 0 0 0 0 0 10 18.52 Did not implement, no test cases passed
24862118 0 0 2 2 0 0 0 0 0 0 0 0 0 0 4 7.41 Does not compile, 8 errors in code, no effort into trying to fix errors
24863947 2 2 3 3 4 4 2 0 2 2 0 2 0 2 28 51.85 Stacks print out incorrectly, great style and code seems well written. Just needed to ensure stacks match with output
24906034 2 0 3 2 0 0 0 0 0 0 0 0 0 0 7 12.96 No test cases passed, outputted the stacks of both players first, wrong output of stastistics at end of move
24971928 2 2 4 2 12 6 0 0 2 0 0 2 0 0 32 59.26 Used package (Guessing eclipse IDE) had to fix that, some test cases pass
25369199 0 0.00 No submission found
22613269 2 2 4 2 8 0 0 0 0 0 0 2 0 2 22 40.74 Array out of bound exception on most cases, output not exactly like spec
24688207 1 1 4 4 10 8 2 4 2 0 0 2 2 6 46 85.19 Great code! Invalid move does not work and array out of bound exception on 2 test cases
24692077 0 0 4 3 0 0 0 0 0 0 0 0 0 0 7 12.96 Test cases output all wrong, Out of bounds errors a lot
24692638 2 2 4 4 12 8 2 4 2 2 2 2 2 6 54 100.00 Perfect, perfect, perfect!!!
24694266 2 2 4 3 12 8 2 4 2 2 2 2 2 6 53 98.15
24699772 1 2 4 2 0 0 0 0 0 0 0 0 0 0 9 16.67 No test cases passed, printing blue and green won multiple times, printed stacks wrong
24708747 1 2 4 4 10 6 2 2 2 2 0 2 0 6 43 79.63 One Mark subtracted for no comments. Board not printing in most cases. StringIndexOutOfBoundsException on quit. Output is Invalid Move for most cases. Unnecessary printing of numbers.
24720372 1 2 2 4 2 4 0 0 2 2 0 0 0 4 23 42.59
24729396 1 2 2 1 12 8 0 2 2 2 2 2 0 6 42 77.78 Drawing case does not work. Wrong In.class used. Remember to comment your code.
24737895 0 0 3 4 0 0 0 0 0 0 0 0 0 0 7 12.96 Code Does not compile
24741213 1 2 3 2 10 6 0 2 0 2 2 0 2 5 37 68.52 Throwing the StringOutOfBounds error in some cases, correct how you are printing the board. Remember to print out statistics. Remember to remove the commented code that you dont use
24742112 1 2 3 4 0 0 0 0 0 0 2 0 0 0 12 22.22 Not Printing "Invalid Move" and "No winner, input file ended". Throwing noSuchElementError for testcases6-9. Throws arrayOutOfBounds for most test cases.
24746541 1 2 3 3 10 8 2 4 2 2 2 2 2 4 47 87.04 Some Invalid moves were regarded valid
24747343 1 2 3 4 12 8 2 4 2 2 2 2 2 4 50 92.59 Well Done :), Weird spacing somewhere so your last board prints incorrectly
24757012 1 2 4 3 8 8 2 4 2 2 0 2 0 4 42 77.78 Test Case 2 and 5 the program does not detect the invalid move
24773166 1 2 2 2 6 4 2 2 0 2 2 0 0 6 31 57.41 Incorrect printing format, Invalid moves are not being detected accurately. In cases where you are meant to print Invalid Move you print No winner, input file ended.
24786845 1 1 2 2 6 0 0 0 0 0 0 2 0 2 16 29.63 Prints Incorrect number of command line arguments everytime. Throws java.util.NoSuchElementException for most test cases.
24818496 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00 Student not on class list
24827657 1 0 4 4 8 0 0 0 0 0 2 2 0 2 23 42.59 Print the last board twice and stacked pieces are not stored. Throws java.nosuchElement for testcases 6-9.
24836478 1 2 2 3 0 0 0 0 0 0 0 0 0 0 8 14.81 Program hangs for most testcases or throws Java.util.nosuchElement error.
24868795 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00 No Submission
24870536 1 2 1 2 2 6 0 0 0 2 0 0 0 2 18 33.33 Did not add a main function, Does not print Statistics in some cases. Throws noSuchElement error on quit
24893773 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00 Student not on class list
24900117 2 2 4 4 12 8 2 4 2 2 2 2 2 6 54 100.00 Well done!
24905895 2 0 4 1 6 1 0 0 0 0 0 1 0 1 16 29.63 remove package. Board incorrect format. Many array out of bounds errors. Doesn't print stats. Fails most testcases after taking board format into account.
24906255 2 1 4 2 4 2 0 0 0 0 0 1 0 0 16 29.63 Incorrect folder structure/Incorrect file names, Array out of bounds errors, Incorrect statistics.
24909858 2 0 1 4 4 1 0 0 0 0 0 1 0 0 13 24.07
25008102 2 2 4 0 12 8 2 4 2 2 2 2 2 6 50 92.59 Functionally sound. Redundant files in submission. Sligtht formatting error in output.
25039490 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00 No submission
25070916 0 0 4 0 5 3 1 1 1 1 0 1 1 2 20 37.04 Remove package. Board outputs correct for the most part. Doesn't print empty board. Doesn't print stats.
25072811 0 0 3 1 0 0 0 0 0 0 0 0 0 0 4 7.41 Does not compile.
25091298 0 0 2 1 0 0 0 0 0 0 0 0 0 0 3 5.56 Hangs on all testcases. Redundant files.
25106732 2 1 4 3 9 8 2 4 2 0 2 2 0 6 45 83.33 Overall pretty good. Some StringIndexOutOfBoundsExceptions. Fails in the a draw testcase. Please make sure your java filename and classname are the same.
25121405 - 0 0.00 CAN'T EXTRACT FILES
25157469 2 1 2 2 12 8 2 4 2 2 2 2 2 6 49 90.74 Wrong class name. Remove package. Doesn't handle erronious input. slight format differences for some testcases, but didn't deduct marks for that. `
25176463 2 0 2 1 1 1 1 0 1 1 1 0 0 0 11 20.37
25393588 1 0 4 3 12 8 2 4 2 2 2 2 2 6 50 92.59 Slight formatting error.
24819565 2 0 3 2 0 0 0 0 0 0 0 0 0 0 7 12.96 Many errors and incorrect outputs across the board.
24857025 2 1 3 3 12 8 2 4 2 2 2 2 2 6 51 94.44 Perfect. Get rid of your inputs folder. Get rid of commented code.
24872849 2 0 3 4 5 3 0 1 0 0 0 1 0 2 21 38.89 Some errors, wrong output. Not printing empty board.
24876038 2 1 4 2 12 8 2 4 2 2 2 2 2 6 51 94.44 Does not provide In.java. Remove package.
25578332 2 0 3 3 11 7 0 0 0 0 2 2 2 2 34 62.96
25578952 2 2 4 3 8 6 0 0 0 0 2 2 2 0 31 57.41 did not compile had to migrate class files to default package, good style
25576402 2 2 2 3 9 6 1 4 1 0 1 1 1 3 36 66.67 lack of comments, good indentation, no unecessary whitespace, long lines of code should be split into multiple lines, make sure the class name and the file name are the same and also class names should be valid identifiers as defined by java, make sure output format is correct Invalid move should be Invalid Move and Green Wins should be Green wins! and Draw should be Draw!
25593862 2 2 2 2 0 0 0 0 0 0 0 0 0 0 8 14.81 did not compile had to rename class file from 25593862 to SU25593862, please ensure that all class names are valid identifiers as defined by the java language, stdlib were corrupt, long lines of code should be split between multiple lines
25572458 2 2 2 3 4 4 1 2 1 1 0 1 1 2 26 48.15 did not compile had to rename class from 25572458 to SU25572458, unecessary whitespace, identation good, lack of comments, long lines of code must be placed on multiple lines, make sure that the outputs are in the correct format No winner, input file ended should be No result, input file ended and Invalid move should be Invalid Move, Draw should be Draw!
25593765 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00 does not compile
24787981 2 1 1 4 0 0 0 0 0 0 0 0 0 0 8 14.81 usage error occurs but a single board pritned out before error displayed, unecessary whitespace, random comments, indentation looks good, all tests cases fail because student ahs not implemented any functionality
23797312 0 0 2 3 0 0 0 0 0 0 0 0 0 0 5 9.26 appending '.txt' to the end of the command line argument causes the program to crash, program crashes when no command line argument supplied, inconsistent indentation, redundant and untidy comments, failed to compile because file name and class name did not match,program crashes on all test cases
24083437 2 2 2 4 0 0 0 0 0 0 0 0 0 0 10 18.52 very few comments, inconsistent indentation, all tests failed because student has implemented any functionality besides reading in the files
23537795 2 0 1 4 6 5 0 3 1 1 2 1 0 3 29 53.70 no usage error thrown, poor style: unecessary whitespace, extra long lines of code not formatted correctly makes the code untidy, Invalid move printed as Invalid Move,test 3 and 4 failed because of incorrect stats, test 8 failed , incorrect formatting of test 12, test 21 failed
25526693 2 1 4 4 6 4 1 2 1 1 1 1 1 3 32 59.26 usage error occurs but a single board is printed before the error is thrown, good style,board format incorrect , Invalid Move instead of Invalid move,
24933848 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00
25109405 0 2 3 4 0 0 0 0 0 0 0 0 0 0 9 16.67 program crashes when command line argument supplied, good indentation, no unecessary whitespace, made an attempt to comment, all test cases failed because files cannot be read
25356968 2 2 0 4 0 0 0 0 0 0 0 0 0 0 8 14.81 no comments, inconsistent use of indentation, unecessary whitespace, all test cases failed
25430807 2 2 4 4 12 8 2 4 2 2 2 2 2 6 54 100.00 good style, excellent!
24827312 2 2 1 4 0 0 0 0 0 0 0 0 0 0 9 16.67 duplicate code, inconsistent indentation, unecessary whitespace, 1-5 and 10 printing extra board at the end and stats not printing correctly, 6-9 program crashes, 11-21 program crashes
25484354 2 0 3 4 0 0 0 0 0 0 0 0 0 0 9 16.67 prints board before usage error, unecessary whitespace, made an attempt to comment, all test cases fail no statistics printed out, test 10, 15, and 16 crash
25574264 2 0 4 4 12 8 2 4 2 2 2 2 2 6 52 96.30 no usage error displayed, good style, excellent!!
25455613 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00
25104233 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00
54.52