Cheating at Countdown | Game Dev's Revenge

Cheating at Countdown | Game Dev's Revenge

Useless Game Dev

1 год назад

21,474 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@cunibon4395
@cunibon4395 - 02.06.2023 19:27

Dollar store Sebastian Lague xD
You too can gladly coexist. I enjoy all the videos I can get

Ответить
@Taugeshtu
@Taugeshtu - 02.06.2023 20:17

> raving on about how optimization is important for code that needs to deploy on a rPi
> porting the code into javascript
Yep, that's a work of a platypus :D

Ответить
@benjoe1993
@benjoe1993 - 03.06.2023 01:44

I'm very sorry but the best Countdown player is and always will be Maurice Moss.
But it's very impressive and fun what you did there :D

Ответить
@EldeNova
@EldeNova - 03.06.2023 11:22

I love the Abdicates easter egg!

Ответить
@Aethemix
@Aethemix - 03.06.2023 13:52

Love the video, and the easter eggs for the 8/10 Cats does CD people. Abdicates FTW

Ответить
@HeroBear64
@HeroBear64 - 03.06.2023 14:18

hes european and yet he still says "aluminum", the world has been so americanised, smh

Ответить
@benjidaniel5595
@benjidaniel5595 - 04.06.2023 06:49

It’s pronounced “Tree” 😛

Ответить
@noiJadisCailleach
@noiJadisCailleach - 04.06.2023 11:48

No, you write like you always use a keybaord.
Heh.

Ответить
@crazyknexkid
@crazyknexkid - 04.06.2023 18:51

Isn't TNETENNBA already a word? 🤔🤣

Ответить
@designator7402
@designator7402 - 04.06.2023 20:04

"For those of you who are under 60"

I feel offended and at the same time you're entirely correct.

Ответить
@therealjtgill
@therealjtgill - 05.06.2023 03:36

I am ashamed at how quickly I would order a hoodie with your avatar embroidered on it

Ответить
@ryanworth4502
@ryanworth4502 - 05.06.2023 08:32

Nice touch with the tnetennba. Moss's 9 letter word!

Ответить
@Atushon
@Atushon - 05.06.2023 16:14

knew right away this was going to be a video about tries

Ответить
@BTheFuck
@BTheFuck - 06.06.2023 13:02

Please, please, please, please, please, please, i'm begging do a radial tree graph of the entire dictionary as shown in your trie explanation :')

Ответить
@LulledLion
@LulledLion - 06.06.2023 13:47

I would try to sort every dictionary word's by the letters, then sort those "words". Sort scrambled input. search n choose k of input letters; starting from choosing 9 out of 9. max 511 combnations to lookup. and best score comes up first.

Ответить
@licheris1158
@licheris1158 - 06.06.2023 15:02

Love the subtle IT crowd reference

Ответить
@principleshipcoleoid8095
@principleshipcoleoid8095 - 06.06.2023 21:59

I wonder if Rust trie is a good idea.

Ответить
@jbritain
@jbritain - 07.06.2023 03:26

Maybe you do definitely write like an 8 year old but you still write better than me!

Ответить
@mcnulty3081
@mcnulty3081 - 08.06.2023 10:42

Love the IT Crowd reference in there - Bravo!

Ответить
@thatdarlo
@thatdarlo - 08.06.2023 21:33

That's a nice Tenetennba.

Ответить
@MrChomZ
@MrChomZ - 09.06.2023 03:28

Hello, that's a nice tnetennba :)

Ответить
@nightfox6738
@nightfox6738 - 09.06.2023 08:11

"You budget Sebastian Lague", I laughed so hard.

In any case, I just wanted to mention theres a much better way to do the naive algorithm.
This certainly won't be faster than the average solve for batch data with a precomputed tree, but for single games it will be much faster.

function( letters, words, depth ):
* Remember the longest word you've seen (longest)
* For each available letter:
* Get the sublist of your available words that match the letter at "depth"
* If that list is empty, return an empty string
* Perform a recursive call to this function with the available letters except for this one, the sublist of words, and depth + 1
* If the result of the recursive call is longer than "longest" overwrite it

Ответить
@chimitrash2966
@chimitrash2966 - 10.06.2023 01:00

You french 🥖?
Damm, hope you get better 🙏😢














/J

Ответить
@ZTF666
@ZTF666 - 10.06.2023 15:22

the second you mentioned the 8oo10c version i subbed !

Ответить
@JoeyMarleyShow
@JoeyMarleyShow - 10.06.2023 15:47

Really cool. But use 3 wires for the morse code? I mean, it was designed with single contact in mind, you'd need a little practice but the result would be even more discreet.

Ответить
@Grimmtombobulus
@Grimmtombobulus - 10.06.2023 19:10

Gotta love the IT Crowd reference at the start. "Umm it actually already is a word"

Ответить
@domicseh
@domicseh - 11.06.2023 01:22

What did you use to visualise the trie?

Ответить
@morgan0
@morgan0 - 11.06.2023 08:56

i wonder if any word culling could be performed by making a list of numbers for each word that has a bit for each character and sets whether it’s on, either way that’s where my mind went first, hadn’t thought of a trie but it seems like a great option for this.

Ответить
@aidantesselaar3736
@aidantesselaar3736 - 12.06.2023 15:47

Missed an opportunities to make the word at the end 'subscribe'

Ответить
@willowpets
@willowpets - 12.06.2023 22:21

That’s amazing that you made the actual device lmaoo. I have a question - could you make this even faster if you could skip the array copy by using an integer to mark each letter in the array as used or remaining, where the nth bit corresponds to the nth letter? I don’t know the speed of an array copy vs passing an integer so idk if it actually would improve performance, but the array copy set off the 🚨 in my brain. Thanks for making great videos!

Ответить
@taurasandaras4699
@taurasandaras4699 - 13.06.2023 00:10

I would have just made a separate list of words for each number of letters for example a list of just 1 letter words, a list of just 2 letter words, etc then look trough them and see if you can make a 9 letter word, 8 letter word, 7 letter word, etc but your way of doing it seems much better

Ответить
@ohfelix_
@ohfelix_ - 13.06.2023 07:17

Vidéo très intéressante! Je n’aurais pas deviné que tu étais français… quelle condition horrible 😨

Ответить
@gljames24
@gljames24 - 14.06.2023 08:48

But why Javascript?

Ответить
@JosephCatrambone
@JosephCatrambone - 16.06.2023 06:56

Did you sort the letters of the word before inserting them? It will help prune duplicates and should reduce the depth of the trie. Coat and taco for example would both map to the path 'acot'. You'd have to keep the words in the last leaf instead of a flag for done, though.

Ответить
@sh4rx486
@sh4rx486 - 18.06.2023 02:13

That’s a nice Tnetennba

Ответить
@idiotmcgee4870
@idiotmcgee4870 - 18.06.2023 10:45

You’re doing great, love your channel. Sebastian Lague is so, so fucking good that even if you were a dollar store version of him (you’re not, you’re better than that) you’d be worth watching. Keep it up!

Ответить
@ZantierTasa
@ZantierTasa - 20.06.2023 14:14

I think this can be made a lot faster by sorting the letters in the dictionary words, as well as the clue. i.e. store "abdicates" as "aabcdeist".

Ответить
@willlacey7621
@willlacey7621 - 20.06.2023 19:12

This would be hilarious to try out on a friend group 😂

Ответить
@rcnhsuailsnyfiue2
@rcnhsuailsnyfiue2 - 21.06.2023 01:19

That’s a nice tnetennba

Ответить
@lululegende
@lululegende - 03.07.2023 19:03

awesome stuff on this channel, very rewatchable too

Ответить
@ThePixelatedCoder
@ThePixelatedCoder - 04.07.2023 19:34

hello its me again great vid by the way just wondering what video editor do you use im thinking of posting a ASCII video that uses compute shader to get it which should get a nice and high framerate thanks Gc edit - i mean shader graph then turn it into compute maybe in a diffrent vid

Ответить
@S.m1cha3l
@S.m1cha3l - 19.08.2023 14:54

It quite annoys me that he forgets about the word car in his visualisation 😂 (not really)

Ответить
@michaelorlev9925
@michaelorlev9925 - 22.08.2023 20:03

Loved the "Abdicates" reference in the end!! Great vid as usual! Good luck on countdown!!!

Ответить
@elephaux5671
@elephaux5671 - 30.09.2023 15:00

Dentroyer. Very clever 🙄😂

Ответить
@absobel
@absobel - 13.11.2023 16:35

Ah c'est de là que ça vient des chiffres et des lettres !

Ответить
@billybollockhead5628
@billybollockhead5628 - 20.11.2023 19:27

Tnetennba .. okay, that got a laugh

Ответить
@billybollockhead5628
@billybollockhead5628 - 20.11.2023 19:35

Couldn’t you do a very quick early out of each branch? I.e. if you had no A’s, you could ignore the A branch straight away? Worst case scenario, only 9 branches to check?

Put each branch into an high level array, and then only check each based on a quick array lookup based on each letter. If that makes sense?

Now I want to take your code and optimize it for this.. lol.. but I have work to do…

Ответить