Skip to content
Snippets Groups Projects

Repository graph

You can move around the graph by using the arrow keys.
Select Git revision
  • 8bc241f97c3c87d372fe936574a31be19a57f17c
  • master default protected
2 results
Created with Raphaël 2.2.031Mar302827262522212017removing debug codemastermasterRemoved test.pyRemoved input(). It goes really fast!Debug for printingfix bugfixing the commentI did not decide when to terminate if there are no possible path to the target{since the piece dont know if it can get to its target or not, it just move}Add more type hinting, change some of the parameter name to keep all the terms the sameattempt to clean up the code , add type hinting + make use of global variable. XUAN TRINH 1:30PM 28 mar 2021When process over the priority list of all possible moves of every piece, prioritise the one with the least option, XUAN 11:30PM 27 Mar 2021add more rule to rate an action{take travelled path into consideration} <- to avoid infiniteloop XUAN 10:00PM 27 mar 2021Can run!!  under most scenario! Will work on what if there no way a piece can get to its target. XUAN 5:30PM [8 27 Mar 2021Let piece -which is made it to its target, choose another target if any. XUAN 5:36PM 27 March 2021debug: where piece slide/swing on stronger piece, XUANAllow piece to take swing action when deciding which path to take, Add test case 0 to test swing action.XUAN TRINH 4:00PM 27 mar 2021Added test situationsFirst, i change the name bfore i realised that all normal case naming are convention{}my fauft for this}, secondly adding constant to eliminate magic number, thrid found a bug.irdAdded target selection functionadded comment about starting on algorithmmodulise the function that read piece into dictionary and block to set. Also delete the dedundance function -XUAN TRINH 7PM 22 mar 2021Finalised import, global dict and listAdd the move selection logic to add to Queue for expanding using either DFS or BDF. i need to stop to wait for we come to argee on how we want to store the block, the move. Before i can continue check for move collision and avoiding blockFound a conflict in opinion, add my opinion into the comment section.Merge branch 'master' of https://gitlab.eng.unimelb.edu.au/scottmw/comp30024-project-1 into masterIn movement logic: add the constraint to ensure new move need to be in the board. handling details are added to the method comment - XUAN TRINH2021 3 21Can add non-dupe pieces to dictattempt clean up my code, add arguement and return to comment sectionadd comment about the format of the position dicttemporary version of getting the position list {i will clean up the code }Literally only typo correctionsadd the action logic {for both swing and slide}, function to compare 2 tile6pm 20-03, added comparison of two pieces and sample dictionaryAdd the test case. function to calculate distance, some basic movement logic + read file into dictInitial commit, only skeleton code present
Loading