[Closed] Maxscript challenge ideas
To help along the Maxscript challenge sticky ( http://forums.cgsociety.org/showthread.php?f=98&t=249147&page=8&pp=15 ), I decided to make a quick poll to see what all ideas people have for possible new challenges. These offer a great learning experience for those new to Maxscript and veterans alike.
I'll start adding some random ideas.
Update:
“Linguistics” is currently winning.
Update 2:
I'll be posting the new "contest" based on what the poll results are in the morning sometime (7-8 EST) unless anyone has any objections to that.
Update 3:
[color=Lime]I think we’re going to do another mini-challenge,[/color] I’ll let Denis or perhaps Lo or Light think of one for the next challenge (whoever has time).
definitely i will not participate in any tool-challenge. i’m too busy for that.
but… i am thinking about mini-challenges
it’s a small task that sounds easy but has some snag…
for example:
randomly generate 1,000,000 unique numbers from 1 to 1,000,000… fastest and memory safe win!
could we add mini-challenge to the poll?
–Hi Denis how are you
–I like you idea! Here’s my attempt
fn getRandomNumbers a b =
(
--collect all numbers
local nums = #{a..b} as array
--define locals
local random_nums = #()
--collect random numbers
for n=nums.count to 1 by -1 do
(
--get random pos in array
local random_pos = random 1 nums.count
--store number in this pos
random_nums += #( nums[random_pos] )
--remove the number from array
deleteItem nums random_pos
)
format "random nums:%
" random_nums
)
getRandomNumbers 1 100000
--hehe
--Runtime error: Memory allocation error (re)sizing array
–the values probably must be written in to a file
I think a mod would need to do that. (didn’t see any options where I could edit the poll)
Or, you could use the Other option.
yeah the mini challenge sounds like a great idea then you could have whoever is the winner pick the next challenge for people to try out.
mini-challenges… i have them a lot. most of them are already solved by me, but i will be more than happy to lose.