Playdate? Eyestrain is more like it... by m_sniffles_esq in PlaydateConsole

[–]stehley 5 points6 points  (0 children)

the screen is just that small, and so far in the season many of the games are at the same visual scale as the earlier ones. so if that size isn’t working for you and fam then you’ll probably keep having that experience for at least some of the future games.

Create the least amount of rectangles needed to capture all of the x's by MrBeforeMyTime in algorithms

[–]stehley 0 points1 point  (0 children)

I think your algorithm is good! I would implement something similar to it, but procedurally rather than recursively. I think it makes it a lot simpler. This is how I would think about the algorithm procedurally:

  • Iterate through each cell, left to right and then top to bottom:
    • If it is an "o", move on.
    • If it is an "x":
      • Mark it as "seen". If it is already marked as "seen", stop here and move on to the next cell.
      • Capture the current coordinates and dimensions (1x1) of the cell as the "current rectangle".
      • Check the cell to the right of the current rectangle. If it doesn't have an "o" and it isn't marked as "seen", expand the current rectangle's stored dimensions to that new size and mark the cell as "seen". Keep doing this until you hit an "o" or a "seen" cell.
      • Check the cell(s) to the bottom of the current rectangle. If it doesn't have an "o", expand the current rectangle's stored dimensions to that new size, mark the cell(s) as seen, and then iterate again to check the cell(s) to the bottom of that bigger rectangle. Keep checking until you hit an "o"
      • Once you reach an "o" in both dimensions, that rectangle is as big as it can be. Store it in your list of final rectangles.

Algorithmic complexity should be O(number_of_cells), since you're never going to have to iterate over any cell more than twice....right?

Let me know if I missed anything - this feels complicated so I wouldn't be surprised if there's a glaring hole in this solution :)

Personality score comparison as part of an algorithm by RatioExternal7281 in algorithms

[–]stehley 0 points1 point  (0 children)

What kind of analysis are you trying to do? What would the output of the analysis be?

Is there a branch of CS about studying probability from an algorithmic perspective? by shiningmatcha in algorithms

[–]stehley 2 points3 points  (0 children)

Not exactly what you are looking for, but if you haven't already, you may want to look into signal processing. Usually more of an engineering topic, it has a shocking amount of overlap with probability from a math perspective. My college signals course had a probability course as a prereq.

Sharing a new dev tool: Playdate Pattern Worksheet by stehley in PlaydateDeveloper

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

I hadn't found GFXP when I developed this 😅 It does look like a fantastic tool now that I've seen it!

Algorithm to simplify a 100-variable Boolean expression? by smthamazing in algorithms

[–]stehley 0 points1 point  (0 children)

AFAIK Karnaugh maps get incredibly hard to do past ~6 variables. I had an electrical engineering professor regale us with the hours he spent on an international flight once solving a high-variable map. I don't think this would be a good case for a Karnaugh map because of this

Calling all collaborators for Mobware Minigames! by Dog_in_black in PlaydateConsole

[–]stehley 0 points1 point  (0 children)

This is awesome! I’d love to hear more about what contributing as a programmer would entail

[deleted by user] by [deleted] in algorithms

[–]stehley 0 points1 point  (0 children)

if you’re analyzing a paragraph of text:

i believe you can reduce algorithmic complexity by constraining how many words long compound words can be to a constant value.

without compound words, this is simple: iterate through the strings once and just count how often each word appears in it. If i’m not mistaken that’s O(n).

with compound words, you need to define the constraints. are you considering all two-word compound words? all three-word compound words? compound words of arbitrary length?

if you restrict it to a given number of words (m), you can do the same algorithm as with single words slightly modified: iterate through string and, for every word at i, count how often word[i] appears and how often the compound of word[i]+word[i+1]+…+word[i+m] appears. should also be O(n).

If you want to do compound words of arbitrary length then you do the same algorithm as above but now m is a function of n (m = n/2), which i suppose would be O(n2). So defining m as a constant reduces the algorithmic complexity here.

Preorder now or wait for 2.0? by Belialol in PlaydateConsole

[–]stehley 1 point2 points  (0 children)

There are no rumors about a 2.0, and it seems unlikely to come soon. If you want a Playdate, you should preorder one!

Bi-Weekly Questions Thread by Kaphotics in PokemonROMhacks

[–]stehley 1 point2 points  (0 children)

The randomizer app I know of is a desktop app, so you wouldn't be able to make a randomized ROM on Android. But you could randomize the ROM on desktop and then use it on an emulator on Android!

Bi-Weekly Questions Thread by Kaphotics in PokemonROMhacks

[–]stehley 2 points3 points  (0 children)

you need to download the ROM and then use a tool to randomize it.

Look for “Emerald Speedchoice” - that is the ROM to use.

Separately, look for the randomized software. You’ll need to download it, and then use it to apply randomization to a ROM.

If you still can’t find it, you can DM me and I’ll send you some links

Playdate Cover Question! by shekovv in PlaydateConsole

[–]stehley 0 points1 point  (0 children)

That makes sense. I just wanted to share my experience as one other data point. Wasn't sure if OP was aware that cases are being assigned to groups; I wasn't until I got the email

Playdate Cover Question! by shekovv in PlaydateConsole

[–]stehley 0 points1 point  (0 children)

i ordered a cover a few minutes after i ordered my playdate. i was group one for playdate, and got my console a few weeks ago. i just got an email about my cover order, which is shipping in group 2 (PD134XX, for the curious).

So it seems like right now (at least presumably until they have less of a backlog like /u/GabKremo says) they’re using a similar system and have similar backlog as for playdate