Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
The same way a computer can play chess and play the best move against you.
I noticed it always takes the most and the least valuable card i have in hand
Or is it infinitely more likely it's random and you've just got confirmation bias going on because you don't notice all the times it discards useless cards?
if self.name == "The Hook" then
G.E_MANAGER:add_event(Event({ func = function()
local any_selected = nil
local _cards = {}
for k, v in ipairs(G.hand.cards) do
_cards[#_cards+1] = v
end
for i = 1, 2 do
if G.hand.cards[\i] then
local selected_card, card_key = pseudorandom_element(_cards, pseudoseed('hook'))
G.hand:add_to_highlighted(selected_card, true)
table.remove(_cards, card_key)
any_selected = true
play_sound('card1', 1)
end
end
if any_selected then G.FUNCS.discard_cards_from_highlighted(nil, true) end
return true end }))
self.triggered = true
delay(0.7)
return true
end
The only thing there deciding what is chosen is the function "pseudorandom_element," which is present literally everywhere with a random outcome in the game. For the hook to be rigged against you it would have to share this function with things such as wheel of fortune, the soul card, crimson heart, cerulean bell, the wheel, misprint, glass cards, lucky cards, 8-ball, space joker, gros michel, cavendish, reserved parking, business card, etc.
The code you shared above is chinese to me, but, according to the dictionary, pseudo means not genuine, spurious or sham. So, I rest my case.
K.
Why did they call that function ''pseudorandom_element'' if it's not pseudo randomness?
1, 2, 4, 2, 1, 3, 4, 3, 3, 3, 2, 1, 4, 4, 3
It would then check the next number in line and, if it's 4, wheel of fortune works. After that it moves onto the next number. Under technicality you can't truly call it random as everything is predetermined, even though the seed generated is truly random. Thus the phrase "pseudo random."
I still think that the hook is a ♥♥♥♥♥.