Roundbeargames | [C++ Tutorial #11.2] Ace Combinations - GameDev Prep Course @Roundbeargames | Uploaded January 2021 | Updated October 2024, 3 minutes ago.
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).
I go deeper into permutations in this video:
youtu.be/lIOraLScXjg
Tutorial Playlist:
youtube.com/playlist?list=PLWYGofN_jX5Apmb8pJUD8NN3KskHW2lcy
Repository:
github.com/RoundBearChoi/CPP_Tutorial_Projects
Any questions/comments? Join us on discord:
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: twitter.com/roundbeargames
facebook: facebook.com/roundbeargames17
hive: peakd.com/@roundbeargames/posts
linkedin: linkedin.com/in/jangwon-choi-15041a9a
Patreon:
patreon.com/roundbeargames
Channel Memberships:
youtube.com/roundbeargames/join
#gamedev
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).
I go deeper into permutations in this video:
youtu.be/lIOraLScXjg
Tutorial Playlist:
youtube.com/playlist?list=PLWYGofN_jX5Apmb8pJUD8NN3KskHW2lcy
Repository:
github.com/RoundBearChoi/CPP_Tutorial_Projects
Any questions/comments? Join us on discord:
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: twitter.com/roundbeargames
facebook: facebook.com/roundbeargames17
hive: peakd.com/@roundbeargames/posts
linkedin: linkedin.com/in/jangwon-choi-15041a9a
Patreon:
patreon.com/roundbeargames
Channel Memberships:
youtube.com/roundbeargames/join
#gamedev