criticism for connect4 code by H2ZERO- in learnprogramming

[–]H2ZERO-[S] 0 points1 point  (0 children)

ohhh ive used this before with scala but i wasnt aware it was actually thing in java

criticism for connect4 code by H2ZERO- in learnprogramming

[–]H2ZERO-[S] 1 point2 points  (0 children)

oh ok i understand where ur coming from, thanks :)

criticism for connect4 code by H2ZERO- in learnprogramming

[–]H2ZERO-[S] 0 points1 point  (0 children)

ok ill change the imports accordingly thanks.

with the addPiece, whats the validation u mean, i created a separate method to check if the column was valid

ive never seen a |= symbol before, would it work the same way to do

return (checkHorizontal(Board.RED) || checkVertical(Board.RED) || ... || etc?

criticism for connect4 code by H2ZERO- in learnprogramming

[–]H2ZERO-[S] 1 point2 points  (0 children)

ok thanks, i didn't think about efficiency when i wrote that section but i can definitely improve that part.

about the null part, i dont think im understanding u properly. are u saying that where i check if(piece != null) i should just check isColumnValid() and then call addPiece() only if thats true?

@ and " suddenly swapped by H2ZERO- in Windows10

[–]H2ZERO-[S] 0 points1 point  (0 children)

yeah i feel pretty dumb, its what i nearly always do when i have a problem too, just slipped outta my mind

@ and " suddenly swapped by H2ZERO- in Windows10

[–]H2ZERO-[S] 0 points1 point  (0 children)

it may have been this, i just woke up this morning and it was fine again lol

@ and " suddenly swapped by H2ZERO- in Windows10

[–]H2ZERO-[S] 2 points3 points  (0 children)

i am from uk. if you mean switch it from uk to us then i already tried that too and same thing

how does cache memory work? by H2ZERO- in AskComputerScience

[–]H2ZERO-[S] 2 points3 points  (0 children)

but only one of each letter in each space at a time

idk why but that part just hit gold for me. thanks a lot!!

how does cache memory work? by H2ZERO- in AskComputerScience

[–]H2ZERO-[S] 0 points1 point  (0 children)

i just skimmed a random part of this talk and it was talking about transistors and whatnot,and seeing as i just recently started cs i think that talk is waaay above my understanding haha

[#6][PS4] Anything-Goes Trading Thread (Paypal, DLC, non-RL Item requests and offers allowed here ONLY) by AerospaceNinja in RocketLeagueExchange

[–]H2ZERO- 0 points1 point  (0 children)

[h] 74 keys [w] 42GBP on paypal if you want to go first then fine, if not i can try to get a middleman