© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
18 replies
fayaz3839

❔ N puzzle game Im getting a random color everytime I slide the puzzle

Hey! Im creating a n puzzle game and im almost done however im stuck at something. Everytime I move my blankspace to sort the numbers I get a random color and when I move it again I get a new color which I dont want. I want it to randomize the colors once then it should be the same colors all the time. Here's my code: https://pastebin.com/rdzRtejU
Pastebin
using System;using System.Collections.Generic;using System.Diagnost...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ N puzzle giving color to each number
C#CC# / help
3y ago
Sliding puzzle
C#CC# / help
11mo ago
❔ Error message when trying to move direction for my tiles in a N-puzzle
C#CC# / help
3y ago
❔ ✅ comprehension questions for a LeetCode puzzle
C#CC# / help
3y ago