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
Смотрите видео [C++ Tutorial #11.2] Ace Combinations - GameDev Prep Course онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Roundbeargames 11 Январь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,906 раз и оно понравилось 66 людям.