lilacstella / camelup Goto Github PK
View Code? Open in Web Editor NEWComputer Science Data Structure Camel Up Project
Computer Science Data Structure Camel Up Project
I have created a pull request to deal with this
current commit only considers the transportation of one camel so u gotta do that ok thx bai
@sarimaleem the implementation of detecting if the mouse is hovering over a tile can be implemented by recreating the track with an array of graphic tiles. Each GraphicTile will be a MouseListener and can detect if the mouse enters and leaves.
pretty self explanatory - the player array is initialized but the players themselves aren't initialized in the gamestate
in the player construtor the setcoins method sets the initial coins to 5. However in the rules it is actually 3
codebashing branch --> gamestate --> won()
in the won() method the following code appears
for(Tile item : track)
if(!item.empty())
loser = item.getCamel().get(0);
however, there is no break statement after the condition is satisfied. Without a break statement, the lowest camel on the 15th tile will be the loser camel instead of the actual loser
#19 depended on this issue
Change the background image on line 55
The output x & y coords are relative to the center of the image and are scaled based on the width and height of the original image
Check out Path2D in java
you suck
Here is the layout of the board
there should be not loop that goes for string s: camelColors in the reset method since there are seperate stacks in the gamestate class
the first tile, that is index 0 in the array track in the game state, is not initialized with five camels
im fixing it in my unit tests
people in the text runner and the graphics have to see which dice have been rolled or the dice left in the pyramid, that is a missing method in the gamestate
contains(x,y) and booleans
recreate game structure with graphic classes
how to create the shape of a camel as a shape that can be passed around
i have created a pull request that deals with this
code-bashing --> CamelUp
there is a method to set the trap called trap() but if a player camel lands on trap it is never actually triggered
After the game is won, all the players have to get their share of coins, this is not done in the gamestate class.
The legbet card in the reset method's color has to be initialized differently. I recomend passing in a string color in the reset method and initialize the legbet camelcolor using that passed in parameter
remove the for String s: camelColors loop, it is unneccessary.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.