bymayanksingh / connect4

🎮 It is a two-player connection game in which the players first choose a color and then take turns dropping one colored disc from the top into a seven-column, six-row vertically suspended grid. The pieces fall straight down, occupying the lowest available space within the column, user wins by forming row of four of same color
MIT License
23 stars 27 forks source link

Write test cases for the game #10

Closed bymayanksingh closed 3 years ago

bymayanksingh commented 4 years ago

you can use unittest framework.

Satvinder31415 commented 4 years ago

can i take this one?

bymayanksingh commented 4 years ago

sure

Satvinder31415 commented 4 years ago

@code-monk08 From what I've read, it's relatively difficult and tricky to implement unit testing for pygame functions and modules. It's not recommended in general as well since graphics and implementation keep changing. Even if we do have to write test cases for it, I'd recommend doing it after the game generalizations and main menu have been implemented to prevent rewriting of code. What do you suggest?

Satvinder31415 commented 4 years ago

I think i've found an alternative. I'll try reading more about it and try implementing it. Will keep you updated

bymayanksingh commented 4 years ago

alright @Satvinder31415 :+1: