Zbornak
MModular
•Created by Zbornak on 1/16/2025 in #questions
Problem with simple card shuffle program
Hello all, sorry if this is just me being dopey, but I have been playing around and made a simple card shuffle program, but I get nonsensical results like "2 of Jack" and "0 of Diamonds". I just wanted to check if it's just me? I can't see why a face would become a suit in this instance?
Many thanks!
5 replies
MModular
•Created by Zbornak on 12/4/2024 in #community-showcase
Morabaraba: a traditional board game from South Africa written in Mojo
1 replies
MModular
•Created by Zbornak on 2/22/2024 in #questions
Py def vs Mojo fn
Hello there, forgive me if this is a stupid question but I am not very familiar with Python. I was reading up on the fact that Mojo accepts both 'dynamic' Python functions as well as safe Mojo functions.
It also states that it is important to know both when using Mojo; I just wanted to ask for a use case where a def would be preferable to a fn?
Many thanks!
9 replies