gamedevhelper cross-posted this post in Game Development 4 years ago


[C++ Tutorial #11.2] Ace Combinations - GameDev Prep Course

in Threespeak4 years ago

▶️ Watch on 3Speak



Here's another example of nested for loops. Combinations and/or permutations with larger numbers become more complicated, but with 4 Aces and 2 choices we can pretty much hard code it (like I did in this video).
Later in this playlist I'll get to more complex examples.

Tutorial Playlist:
https://youtube.com/playlist?list=PLWYGofN_jX5Apmb8pJUD8NN3KskHW2lcy

Repository:
https://github.com/RoundBearChoi/CPP_Tutorial_Projects

Any questions/comments? Join us on discord:
https://discord.gg/hAFTgcA

intro: (0:00)
a function: (0:42)
a for loop: (1:47)
nested for loops: (3:48)
the leftovers: (5:03)
results: (6:04)
outro: (6:51)

Social




twitter: https://twitter.com/roundbeargames facebook: https://facebook.com/roundbeargames17 hive: https://peakd.com/@roundbeargames/posts reddit: https://reddit.com/user/roundbeargames linkedin: https://linkedin.com/in/jangwon-choi-15041a9a

Patreon:
https://patreon.com/roundbeargames

Channel Memberships:
https://youtube.com/roundbeargames/join


rb_channel_art_1280_steem_re.png
ytlogo.pngdlogo.png twlogo.png fblogo.png rlogo.png lilogo.png


▶️ 3Speak