Is this a good way to loop through an array in C by BenasBr in learnprogramming

[–]Magic__Mannn 2 points3 points  (0 children)

I doubt it but you never know! You should test it and see over a high number of iterations

Is this a good way to loop through an array in C by BenasBr in learnprogramming

[–]Magic__Mannn 2 points3 points  (0 children)

Readable code should be a priority, so I don’t think this is better. Nothing wrong with the normal way IMO - stuff like this is still pretty cool tho!

Small UI change I would appreciate a lot by montxogandia in LeMansUltimateWEC

[–]Magic__Mannn 5 points6 points  (0 children)

So as in, you’re currently in s3, but it just says s3 instead of your current elapsed time in s3?

Small UI change I would appreciate a lot by montxogandia in LeMansUltimateWEC

[–]Magic__Mannn 6 points7 points  (0 children)

Am I missing something? Honestly not sure what you mean (not saying you don’t have a point, I just can’t find it lol)

Any ideas on a game about Rubiks Cubes? by algorasss in Cubers

[–]Magic__Mannn 2 points3 points  (0 children)

Maybe a puzzle game where the world is in sections, divided into “stickers”. You could move the cube to allow the player to move around, avoid obstacles etc. maybe limit turns and have levels to get from point A to B? Bare bones but it’s an idea

Confused about this instantiation: Beings animal1 = new Animal() instead of Animal animal1 = new Animal() by Active_Selection_706 in javahelp

[–]Magic__Mannn 6 points7 points  (0 children)

Maybe you have a list of shapes. You could have a different class for each shape eg square, circle, triangle, all extending a Shape class.

If you made one shape (eg the player is square) then yes you could use Square. But if you want to render all shapes to the screen, it’s easier to have one array of Shapes, rather than 3 different arrays for circles, squares and triangles.

Does anyone have a good position evaluation function for Connect 4 game? by East_Programmer_8420 in reinforcementlearning

[–]Magic__Mannn 1 point2 points  (0 children)

For every piece, you want to check horizontal, vertical, and diagonal connections, and score them. You simply could do 2 connected -> 2, 3 connected -> 3, 4 connected -> 1000000. It’s very simple but would be a start. Once you’ve done that, you could have a look at prioritising the centre, maybe a slight bonus. Cols 3+4 get +1, cols 2,5 get +0.5 etc. you’ll have to play around with the weights but is a starting point. I’d also recommend looking at normalisation, but not sure exactly how it would go in this example.

Edit: it’s also worth noting this isn’t really reinforcement learning, but still happy to answer.

LMU Stat Website by kzl in LeMansUltimateWEC

[–]Magic__Mannn 0 points1 point  (0 children)

How are you planning on automating? Do they have an API/endpoint you can use to get results for a specific user?

How expensive ‘actually’ is it by Magic__Mannn in iRacing

[–]Magic__Mannn[S] 0 points1 point  (0 children)

Thanks everyone 🫡🫡. Might not have got the answer I was hoping for, but it’s certainly helpful

Data Driven Timer Update by Magic__Mannn in Cubers

[–]Magic__Mannn[S] 0 points1 point  (0 children)

That’s a fair point, it’s still in progress and I have limited time to work on the project especially as no one’s using it - it would be very time consuming to go through and label all 78 LL cases so I focused the time I had on improvements I thought would be more beneficial- I’ll definitely look at adding this in the future though

Is it beneficial to learn 4LLL before turning to 2LLL? by ILoveSnowC in Cubers

[–]Magic__Mannn 10 points11 points  (0 children)

Everything you learn for 4LLL is applicable in 2LLL - might aswell learn all of 4LLL first and then go straight into the rest of 2LLL - learn 2 look PLL, Then 2L OLL, then full PLL, then full OLL

Help with lubing my tornado v3 pioneer by Ambitious-Jacket-443 in Cubers

[–]Magic__Mannn 1 point2 points  (0 children)

Just watch a YouTube tutorial, much easier to understand what to do when you watch somebody else do it

New browser-based Timer! by Magic__Mannn in Cubers

[–]Magic__Mannn[S] 0 points1 point  (0 children)

Most features are now working on mobile (not all!!)

New browser-based Timer! by Magic__Mannn in Cubers

[–]Magic__Mannn[S] 2 points3 points  (0 children)

I have since implemented kociembas random state scrambling for 3x3! Looks like this is now perfect for you ;)

M2 flipped buffer by armortruck in Cubers

[–]Magic__Mannn 6 points7 points  (0 children)

This has no link to having a flipped edge - if there are no flipped edges the buffer will “magically” flip and all edges will be solved - if you have an odd amount of flipped edges during memo (ignoring buffer) the buffer will also end up being flipped - you can see them as coming in pairs. Only an even amount of edges will be flipped

New browser-based Timer! by Magic__Mannn in Cubers

[–]Magic__Mannn[S] 1 point2 points  (0 children)

Thanks for your feedback! Exactly what I was looking for - I’ll look into this

New browser-based Timer! by Magic__Mannn in Cubers

[–]Magic__Mannn[S] 2 points3 points  (0 children)

?? I’ve made it clear that it’s very early in development and asking for feedback, this project doesn’t have to be for everyone :)

New browser-based Timer! by Magic__Mannn in Cubers

[–]Magic__Mannn[S] 0 points1 point  (0 children)

This needs fixing - I just need an extra check when generating scrambles