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:
• Permutations Visualized in Unity - Ga...
Tutorial Playlist:
• C++ / GameDev Prep Course
Repository:
https://github.com/RoundBearChoi/CPP_...
Any questions/comments? Join us on discord:
/ discord
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: / roundbeargames
facebook: / roundbeargames17
hive: https://peakd.com/@roundbeargames/posts
linkedin: / jangwon-choi-15041a9a
Patreon:
/ roundbeargames
Channel Memberships:
https://youtube.com/roundbeargames/join
#gamedev
Watch video [C++ Tutorial #11.2] Ace Combinations - GameDev Prep Course online without registration, duration hours minute second in high quality. This video was added by user Roundbeargames 11 January 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,906 once and liked it 66 people.