Discuss Scratch

colinmacc
Scratcher
1000+ posts

MAHJONG SOLITAIRE - CUSTOM LEVEL CODES

deathknight0124 wrote:

So close with @StrixCattus ‘s closed casket, removed 20 tiles (19 outside top on the right, 1 inside right), and got stuck because no more visible tiles would match up. there has to be at least 4-5 hidden tiles and then the main group of 32 at the top. It’s gonna be tough to find a RNG-based solution where the first 34 of the 144 tiles available proceed in such a way that it opens the top before we deal with the bottom.

Maybe it would be a good idea for the editor to have a check in its solution making process for user solvability (instead of just solving a board regardless of if we can reach, find a way to have the computer solve as a human does, from the top and sides inwards? I don't know how you would even do that though, generate a solution and have an AI play it from the human perspective?). Of course, that would increase any wait time and/or lag made by the “Generating puzzle” section of the process and would be very difficult to implement without some form of issue (for example, if the AI makes some illegal move or mistakenly assumes its not solvable because it didn't match on the first pair, even if there is a second or third piece to pair with?).

As it is, i'm just throwing ideas to the wind and not knowing the code. I'll check the project out later in terms of code and see if i have some spark with my 2 brain cells to make something like what i described

I mean it's a fascinating challenge but not one I'm going to spend any serious time on

Sample Projects

deathknight0124
Scratcher
100+ posts

MAHJONG SOLITAIRE - CUSTOM LEVEL CODES

colinmacc wrote:

deathknight0124 wrote:

LONG PARAGRAPH I DON'T WANNA SPAM THE FORUM WITH
I mean it's a fascinating challenge but not one I'm going to spend any serious time on
not like i'd expect you to lol its more of a challenge for me just so i can get a better understanding of how the code works and learn something from it

Hey! I'm DK/DeathKnight: a VIP in the RD/BB Community, Modder, and Speedrunner on any game i come across!

Ask me anything about:
* Modding games (I'll do my best if I haven't modded the game before)
* Speedrunning various games (I'll do my best if I haven't done a run of the game before)
* Other things!

Longest comment chain that has been on my profile: 1186
Longest comment chain that I've been a part of: 1500+ (It is still going)
colinmacc
Scratcher
1000+ posts

MAHJONG SOLITAIRE - CUSTOM LEVEL CODES

deathknight0124 wrote:

colinmacc wrote:

deathknight0124 wrote:

LONG PARAGRAPH I DON'T WANNA SPAM THE FORUM WITH
I mean it's a fascinating challenge but not one I'm going to spend any serious time on
not like i'd expect you to lol its more of a challenge for me just so i can get a better understanding of how the code works and learn something from it

Well the whole board is stored in the list called GRID, starting at the top left and arranged in rows and columns, starting with the bottom layer. I think there are 435 list entries per layer, (29x15), because you have to take into account tiles in the half positions horizontally and vertically.

Coding the editor and not allowing tiles in the same layer to overlap was quite challenging!

Sample Projects

deathknight0124
Scratcher
100+ posts

MAHJONG SOLITAIRE - CUSTOM LEVEL CODES

colinmacc wrote:

Multiple People wrote:

I refuse to chainspam the forum
Well the whole board is stored in the list called GRID, starting at the top left and arranged in rows and columns, starting with the bottom layer. I think there are 435 list entries per layer, (29x15), because you have to take into account tiles in the half positions horizontally and vertically.

Coding the editor and not allowing tiles in the same layer to overlap was quite challenging!
interesting… i'm gonna remix the project and work on it. i might have something solid done by monday (which is great, since i will actually be back in school and not be forced to check my messages every 30 minutes lol) because i have a few ideas based on what i took a look at so far. is it all managed by clones, or some weird pen stamping?

Hey! I'm DK/DeathKnight: a VIP in the RD/BB Community, Modder, and Speedrunner on any game i come across!

Ask me anything about:
* Modding games (I'll do my best if I haven't modded the game before)
* Speedrunning various games (I'll do my best if I haven't done a run of the game before)
* Other things!

Longest comment chain that has been on my profile: 1186
Longest comment chain that I've been a part of: 1500+ (It is still going)
colinmacc
Scratcher
1000+ posts

MAHJONG SOLITAIRE - CUSTOM LEVEL CODES

deathknight0124 wrote:

colinmacc wrote:

Multiple People wrote:

I refuse to chainspam the forum
Well the whole board is stored in the list called GRID, starting at the top left and arranged in rows and columns, starting with the bottom layer. I think there are 435 list entries per layer, (29x15), because you have to take into account tiles in the half positions horizontally and vertically.

Coding the editor and not allowing tiles in the same layer to overlap was quite challenging!
interesting… i'm gonna remix the project and work on it. i might have something solid done by monday (which is great, since i will actually be back in school and not be forced to check my messages every 30 minutes lol) because i have a few ideas based on what i took a look at so far. is it all managed by clones, or some weird pen stamping?

Yeah it’s all clones. Sorting out the layering was a nightmare!

Sample Projects

deathknight0124
Scratcher
100+ posts

MAHJONG SOLITAIRE - CUSTOM LEVEL CODES

colinmacc wrote:

Multiple People wrote:

I refuse to chainspam the forum
Yeah it’s all clones. Sorting out the layering was a nightmare!
ok, i just saw how the grid and z-layering was set up. theoretically, isnt it possible just to have 1 list containing an entry for each tile where you store the x value as a 2 or 3 number digit, followed by a dash and then a 2-3 number digit corresponding to the y value on the board, and then another dash followed by the same digit system for the z layering? (like having "13-12-5 for a tile at the 13th x position, 12th y position, and 5th z layer?). it could help compact the code and make a slightly easier save code system (just plug in each tiles position with slashes in between each tile?). however, im not exactly sure how that would impact the overlap system. how does it check for overlap, by reading the grid and looking to see if the spot adjacent to the requested spot is filled? or do you use some other unknown method?

Hey! I'm DK/DeathKnight: a VIP in the RD/BB Community, Modder, and Speedrunner on any game i come across!

Ask me anything about:
* Modding games (I'll do my best if I haven't modded the game before)
* Speedrunning various games (I'll do my best if I haven't done a run of the game before)
* Other things!

Longest comment chain that has been on my profile: 1186
Longest comment chain that I've been a part of: 1500+ (It is still going)
colinmacc
Scratcher
1000+ posts

MAHJONG SOLITAIRE - CUSTOM LEVEL CODES

Yeah, it just looks up the relative positions on the grid for the tiles around the selected tile.

For most of the tiles, away from the edges, there are 9 possible ways for a tile to be covered up by another tile (!)

Sample Projects

deathknight0124
Scratcher
100+ posts

MAHJONG SOLITAIRE - CUSTOM LEVEL CODES

colinmacc wrote:

Yeah, it just looks up the relative positions on the grid for the tiles around the selected tile.

For most of the tiles, away from the edges, there are 9 possible ways for a tile to be covered up by another tile (!)
interesting… it probably wouldnt be that hard to do the overlap check with my code idea. i think i'll get working on that first before doing anything with checking how to fix the original issue (hidden playable tiles) just so i can make the code slightly more intuitive for people (including me) to read

Hey! I'm DK/DeathKnight: a VIP in the RD/BB Community, Modder, and Speedrunner on any game i come across!

Ask me anything about:
* Modding games (I'll do my best if I haven't modded the game before)
* Speedrunning various games (I'll do my best if I haven't done a run of the game before)
* Other things!

Longest comment chain that has been on my profile: 1186
Longest comment chain that I've been a part of: 1500+ (It is still going)
Mister810
Scratcher
2 posts

MAHJONG SOLITAIRE - CUSTOM LEVEL CODES

Footprint: 00022022282A2C2E2G46484A4C4E4G4I4K4M6166686A6C6E6G6I6K6M6O86888A8C8E8G8I8K8M8OA2A8AAAIAKAMC4|00022022282A2C2E2G46484A4C4E4G4I4K4M66686A6C6E6G6I6K6M6O86888A8C8E8G8I8K8M8OA8AAAIAKAM|282A2C2E2G46484A4C4E4G4I4K4M66686A6C6E6G6I6K6M6O86888A8C8E8G8I8K8M8OA8AAAIAKAM|383A4K4M585A6J6L6N787A8J8L8N989A
not very challenging but I'd say it's fine
TWOPREEKONE35
Scratcher
29 posts

MAHJONG SOLITAIRE - CUSTOM LEVEL CODES

unrelaxing,
282A2M4446484C4E4G4I4K4M4O6266686A6C6E6G6I6M6O8486888A8C8E8G8I8K8M8OA4A6A8AAAEAGAIAKC4C8CA
Catscratcher07
Scratcher
1000+ posts

MAHJONG SOLITAIRE - CUSTOM LEVEL CODES

00E0|01E1|02E2|0311E3|12E4|13E5|1422E6|23E7|24E8|25E9|2634EA|35EB|36EC|3745ED|46EE|47EF|4856EG|EH|EI|EJ|EK|EL|EM|EN|EO|EP|EQ|ER|ES|DS|CS|BSDS|ASES|9SBSER|ASEQ|9SBSEPER|ASCSEOEQ|BSDSENEP|ASCSEMEOEQES|CRELENEPER|CQCSEKEMEOEQES|CPCREJELENEPER|COCQCSEIEKEMEOEQES|CNCPCRELENEPER|EKEMEOEQES|ELENEPER|EKEMEOEQES|ELENEPER|EMEOEQES|ENEPER|EMEOEQES

this level is so hard you cannot even start it!

trouble with clones? view my clone id toolbox! I also have built the bases of a tower defense game link here.
If someone on help with scripts is saying that something can't be done, they should be suspected of being a team limit grunt.
Wanna be the very best? Here's your chance!
Mazter33
Scratcher
35 posts

MAHJONG SOLITAIRE - CUSTOM LEVEL CODES

00020406080A0C0E0G0I0K0M0O0Q0S20222426282A2C2E2G2I2K2M2O2Q2S40424446484A4C4E4G4I4K4M4O4Q4S60626466686A6C6E6G6I6K6M6O6Q6S80828486888A8C8E8G8I8K8M8O8Q8SA0A2A4A6A8AAACAEAGAIAKAMAOAQASC0C2C4C6C8CACCCECGCICKCMCOCQCSE0E2E4E6E8EAECEEEGEIEKEMEOEQES|111D1P33373B3F3J3N555D5L919D9PB3B7BBBFBJBND5DDDL
'???'

MY GAMES

gor-dee
Scratcher
1000+ posts

MAHJONG SOLITAIRE - CUSTOM LEVEL CODES

Love the game, here's my effort 0C0G24262D2F2M2O32383K3Q4E51595J5R6E7074787K7O7S868E8M909SAEB1BRC3CDCFCPD5DBDHDNE7E9EJEL|0C0G24262D2F2M2O32383K3Q51595J5R7074787K7O7S868M909SB1BRC3CDCFCPD5DBDHDNE7E9EJEL|0C0G24262M2O32383K3Q51595J5R7074787K7O7S868M909SB1BRC3CPD5DN|383K595J74787K7O868M|595J74787K7O868M|74787K7O868M|747O868M|747O
colinmacc
Scratcher
1000+ posts

MAHJONG SOLITAIRE - CUSTOM LEVEL CODES

gor-dee wrote:

Love the game, here's my effort 0C0G24262D2F2M2O32383K3Q4E51595J5R6E7074787K7O7S868E8M909SAEB1BRC3CDCFCPD5DBDHDNE7E9EJEL|0C0G24262D2F2M2O32383K3Q51595J5R7074787K7O7S868M909SB1BRC3CDCFCPD5DBDHDNE7E9EJEL|0C0G24262M2O32383K3Q51595J5R7074787K7O7S868M909SB1BRC3CPD5DN|383K595J74787K7O868M|595J74787K7O868M|74787K7O868M|747O868M|747O

Wow nice! There are lots of different elements that make that a really hard layout! Tall stacks, obscured tiles, and long chains you need to unlock.

Good stuff!

Sample Projects

gor-dee
Scratcher
1000+ posts

MAHJONG SOLITAIRE - CUSTOM LEVEL CODES

Here's a nice difficult one 000C0E0G0S1A1I282K363M555N757N959NB6BMC8CKDADIE0ECEEEGES|000C0E0G0S1A1I282K363M555N757N959NB6BMC8CKDADIE0ECEEEGES|0D0F1B1H292J373L565M757N969MB7BLC9CJDBDHEDEF|1D1F2B2H393J474L666M868MA7ALB9BJCBCHDDDF|2E3C3G4A4I585K777L989KAAAIBCBGCE|3D3F4B4H696J898JABAHBDBF|4D4F5B5H7A7I9B9HADAF|5E6C6G8C8G9E|7D7F

wouldn't like to try setting it up with real tiles!
colinmacc
Scratcher
1000+ posts

MAHJONG SOLITAIRE - CUSTOM LEVEL CODES

gor-dee wrote:

Here's a nice difficult one 000C0E0G0S1A1I282K363M555N757N959NB6BMC8CKDADIE0ECEEEGES|000C0E0G0S1A1I282K363M555N757N959NB6BMC8CKDADIE0ECEEEGES|0D0F1B1H292J373L565M757N969MB7BLC9CJDBDHEDEF|1D1F2B2H393J474L666M868MA7ALB9BJCBCHDDDF|2E3C3G4A4I585K777L989KAAAIBCBGCE|3D3F4B4H696J898JABAHBDBF|4D4F5B5H7A7I9B9HADAF|5E6C6G8C8G9E|7D7F

wouldn't like to try setting it up with real tiles!

Fantastic!

Sample Projects

tacopufferfish
Scratcher
15 posts

MAHJONG SOLITAIRE - CUSTOM LEVEL CODES

00060C0E0G0M0S20242A2I2O2S4044484E4K4O4S6064686C6E6G6K6O6S8084888C8E8G8K8O8SA0A4A8AEAKAOASC0C4CACICOCSE0E6ECEEEGEMES|000D0F0S151N2A2I2S4044484K4O4S64686D6F6K6O6S8084888D8F8K8OA0A4A8AKAOASC0CACID5DNE0EDEFES|0E1B1H252N2S393J545O6S787E7K80949OB9BJC0C5CNDBDHEE|0E646O787E7K848OEE|74787E7K7O|7E|7E|7E idk if its ez or hard, I cant beat it but I'm just bad
colinmacc
Scratcher
1000+ posts

MAHJONG SOLITAIRE - CUSTOM LEVEL CODES

tacopufferfish wrote:

00060C0E0G0M0S20242A2I2O2S4044484E4K4O4S6064686C6E6G6K6O6S8084888C8E8G8K8O8SA0A4A8AEAKAOASC0C4CACICOCSE0E6ECEEEGEMES|000D0F0S151N2A2I2S4044484K4O4S64686D6F6K6O6S8084888D8F8K8OA0A4A8AKAOASC0CACID5DNE0EDEFES|0E1B1H252N2S393J545O6S787E7K80949OB9BJC0C5CNDBDHEE|0E646O787E7K848OEE|74787E7K7O|7E|7E|7E idk if its ez or hard, I cant beat it but I'm just bad

Wow! It looks spectacular!

Sample Projects

funprogramer_animate
Scratcher
3 posts

MAHJONG SOLITAIRE - CUSTOM LEVEL CODES

222426282A2C2E2G2I2K2M2O2Q424E4Q6266686A6E6I6K6M6Q8286888A8E8I8K8M8QA2AEAQC2C4C6C8CACCCECGCICKCMCOCQ|222426282A2C2E2G2I2K2M2O2Q424E4Q6266686A6E6I6K6M6Q8286888A8E8I8K8M8QA2AEAQC2C4C6C8CACCCECGCICKCMCOCQ|222426282A2C2E2G2I2K2M2O2Q424E4Q62686E6K6Q82868A8E8I8M8QA2AEAQC2C4C6C8CACCCECGCICKCMCOCQ
colinmacc
Scratcher
1000+ posts

MAHJONG SOLITAIRE - CUSTOM LEVEL CODES

funprogramer_animate wrote:

222426282A2C2E2G2I2K2M2O2Q424E4Q6266686A6E6I6K6M6Q8286888A8E8I8K8M8QA2AEAQC2C4C6C8CACCCECGCICKCMCOCQ|222426282A2C2E2G2I2K2M2O2Q424E4Q6266686A6E6I6K6M6Q8286888A8E8I8K8M8QA2AEAQC2C4C6C8CACCCECGCICKCMCOCQ|222426282A2C2E2G2I2K2M2O2Q424E4Q62686E6K6Q82868A8E8I8M8QA2AEAQC2C4C6C8CACCCECGCICKCMCOCQ

Nice one!

Sample Projects

Powered by DjangoBB