paint-brush
Conditional Coin Flips with Rock Paper Scissorsby@pyan
386 reads
386 reads

Conditional Coin Flips with Rock Paper Scissors

by Puyan Wei10mJuly 29th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Test Driven Development (aka TDD) is a good way to test your code before writing it. The most common way of doing this is to write a test for a function that would return a number from 0 to 5. The next step would be to write one for returning 1.0 to 5. But for the sake of time, I’ll write a failing test for all the outcomes. This is not helpful in trying to create a non-intimidating, no-questions-are-stupid culture, which will help get more people into coding.

Company Mentioned

Mention Thumbnail
featured image - Conditional Coin Flips with Rock Paper Scissors
Puyan Wei HackerNoon profile picture
Puyan Wei

Puyan Wei

@pyan

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Tefter
Tefter
Freefoto
Coinerblog
Garker