In a thousand years of trying I never would have gotten this Final Jeopardy question in 30 seconds.
Category: ANAGRAMS
One is a procedure foundational to Computer Science,
the other was made in large part obsolete by computers.
No Googling!
Oh yeah. You've got 30 seconds - go!
PM me with...
I’m creating a game for my students called Royal Questions. The purpose of the game is to make any question-answer session fun. It’s loosely based on medieval times but really anything can happen. Here’s how it works: Students are selected randomly and asked to choose from the following...
I'm a game developer by profession with a MSc in Computer Science. I'm curious about particle physics and everything else in the area of physics. I love to build stuff with LEGO bricks together with my kids.
I suppose, anybody here knows about the Elitzur–Vaidman bomb tester and the counterfactual definiteness:
https://en.wikipedia.org/wiki/Elitzur–Vaidman_bomb_tester
https://en.wikipedia.org/wiki/Counterfactual_definiteness
I have a question: can this experiment be performed at the level of...
It's the first of December. Let's start a Whamageddon at PF! The rules are easy:
You must declare participation once.
Who is caught, i.e. is Whamageddoned is out.
Cover songs or other annoying songs do not count.
Nobody is interested in whether anyone wants anything for Christmas.
I apologize for messy title, but that's as short as I could make it to say all that I wanted.
I also apologize if I'm not using correct math phrases, but I'll try to picture a problem the best I can.
I've been pulling my hair out trying to solve a problem I'm having for couple of months.
The...
Hello!
I'm from Croatia and one of my pass time obsessions is game physics, especially ragdolls, and any game that lets me play with that is a game for me.
I did some mods for games like Fallout New Vegas which modify how physical objects in game work which seem to be popular.
Anyway, I hope...
This is not for professional career or something. This is just to practice OOP as I'm learning C++ atm. I found there are not many course for sfml, sdl, allegro, graphics.h,raylib etc unlike unreal engine. So, if you know something which has a good tutorial, please recommend.
In OOP way. I want...
Hi everyone
I've used a game loop to try make a textView alternate between two different strings every two seconds. When I run it, I just get a blank screen. The textView was originally set to show "Hello World!" but not even that shows.
Does anyone know what's gone wrong?
Thanks
public...
Here's the full code:
This is the code that I'm interested in:window.addEventListener("keydown", e => {
inputDir = { x: 0, y: 1 };
moveSound.play();
switch (e.key) {
case "ArrowUp":
inputDir.x = 0;
inputDir.y = -1;
break;
case "ArrowDown":
inputDir.x =...
Hi everyone
I'd like to make a simple Tontie/Whack-a-mole clone on Android Studio. I was thinking I could just use buttons and not use any animations.
Could I do this on Android Studio? Or would I be better off learning how to use a game engine? If so, which would you recommend?Thanks
There are 4 players numbered 1 to 4. There is a room with an entrance door to one side and exit door to opposite side. Inside the room, there are 4 boxes numbered 1 to 4. Inside each box, there is a chit containing a number (with equal probability) from 1 to 4 (inclusive). No two chits can have...
Hello,
To keep my questions straightforward they are below.
How do I learn how to code Game Enemy AI in C++ from scratch and what are the top resources you recommend(Books, Tutorials, CD-Roms, Videos)?
How do I learn how to code Game Enemy AI in Assembly Langauge from scratch and what are the...
This thread is for all who like the daily Wordle game of the New York Times as much as I do.
The rules:
1) https://www.nytimes.com/games/wordle/index.html
2) Post your result.
3) Do not spoil the answer.
Hi PF!
Take a deck of cards. 26 are red and 26 are black. You draw cards randomly without replacement: if the card is red you gain a dollar, if black you lose a dollar. What's the expected value?
My thought process was to look at simple cases and build to a 52 card deck. We know if ##r=0##...
Summary: Finding the transition matrix of a paint ball game where only 3 probabilities are given.
We have the following question:
Alice, Tom, and Chloe are competing in paint ball. Alice hits her target 40% of the time, Tom hits his target 25% of the time, and Chloe hits her target 30% of the...
Suppose I have a shuffled pack of cards, out of which 4 red cards have been lost or removed. So now I have 22 red cards and 26 black cards in random order. I'm dealing cards in pairs. If a pair has 2 red cards, they are dealt to Mr. Red, if the pair has 2 black cards, they're dealt to Mr. Black...
I pick a number ##n## from 1 to 100 (integers only). If you guess correctly you win ##n## dollars, else you get zero. How much would you pay to play?
Evidently the solution is to pick ##k## with probability ##1/k##, so expected payout is ##(\sum_{i=1}^{100} 1/j )^{-1} = 0.2##. But where's the...
Given information:
A wheel of fortune with ten equal sectors is used for a candidate game. Five of these sectors are labelled only with the number 1, three only with the number 2 and two only with the number 3.
The game for a pair of candidates is as follows: The two candidates �K1 and K2...
Bridge : For k= 1,2,3 ,4 let $N_k$ be the event that North has at least k aces. Let $S_k, E_k, W_k$ be be the analogous events for South, East, West. Discuss the number x of aces in West's possession in the events
a)$W_1', $
b) $N_2S_2,$
c) $N_1'S_1'E_1'$
d) $W_2- W_3$
e)$N_1S_1E_1W_1$
f)...
I have also put some notes on what is to be done in the problematic function
Note also that this is not homework, but am just preparing for an exam.
Thanks in advance!
forgot to provide the code here, so here it is:
# RPG subsystem: check whether the next player move on a 5x5 tileset is...
I created a jumble word game, well I guess I should say I copied it from a tutorial in a book and then for practice I added a point tracker. It deducts points anytime you ask for a hint or get the word wrong. I wanted to see if this was a decent way to carry out this action in my program. The...
Two numbers are bring chosen by random from the set {1,2,3,4,5}. If the sum of the two numbers is even, you win 100 dollars, otherwise you win nothing. In order to participate in the game, you pay $80. What is the expected value and variance of the profit after 17 games ?
I solved this one...
I want to calculate the kolmogorov complexity of n evolution of a game of game of life(game of life is a kind of cellular automata). I’m not searching for the complexity of a certain pattern of cells but for the total complexity of an initial set of cells over n evolutions. Does it make sense to...
I feel like there is something missing in my solutions, because the answers are coming out weird.
(a)
The reward for getting a head is ##2^n## dollars, the number of flips ##n## it takes to get the first heads.
the probability to get a head in the ##n##th flip is ##\frac{1}{2^n}##
so the...
summary: you toss six coins. if you have 3 heads, you don't get any money. if you have 4 or more heads, you get the number of heads amount of dollars. if you have 2 or less heads, you toss six coins again and get the number of heads amount of dollars.
the number of ways to get 0 head...
Hey! 😊
You participate in the following game :
You toss a fair coin until heads falls, but no more than three times. You have to pay $1$ euro for each throw. If your head falls, you win $3$ euros. The random variable $X$ describes your net profit (profit
minus stake). Give the values that $X$...
Hey! 😊
Sarah, Alex and Mary meet at Tom for a game night.
a) The first game is a board game in which six game colors (red, green, yellow, blue, violet, orange) are possible. Each of the players chooses a color in turn. (Each color can only be assigned once.) How many different color...
I have a game where heroes have a set of traits, or abilities. The level of the abilities are raised in two ways, by banner cards and/or by leveling the hero. The Banner cards and heroes don't match perfectly, rather a banner card can match 1 or 2 (sometimes 3) abilities of the heroes abilities...
This Q was asked in a chat room: Find the number of pulls (draws from the distribution) required to have a 50% chance of getting a full set of event 5*s (*'s denote rarity in the game) from the Magic Tower Summon (of the Empires & Puzzles mobile game) which has 5x event 5*s each at a 0.2% drop...
Hi,
I was reading around and found this problem. I have seen some discussion about the solution (but nothing verified) with some disagreement.
Problem: One person has a 12 sided die and the other has a 20 sided die. They each get two rolls and they can each chose to stop rolling on either one...
Hi,
I am back yet again with another problem I was reading the following question and attempting it. It was an interview problem, so it isn't technically homework, but I don't know where else to post it. I think there are elements of game theory involved, but I have no academic background in...
Hi,
I was attempting the following question and would appreciate any insight on how others would approach this game theory/probability-type question.
Question: You have been chosen to play a game involving a 6-sided die. You get to roll the die once, see the result, and then may choose to...
Hi,
I was taking a look at the following question.
Question: There is a game where one person rolls a 20-sided dice and another person rolls three 6-sided dice. They both roll their dice and whoever gets a higher number (for 20-sided die) OR sum of numbers (for three 6-sided dice) wins the...
The title is my question, and this post is meant to be a place for discussions. I think it is somewhat related to game theory and microeconomics, but I am not sure how to accurately categorize it.
Let me give you an example. Let us suppose that Mr. Goose, an ideal person with a national average...
This is what I did:
Let Y = number of sixes occurred when ##n## dice are thrown
Y ~ B (n, 1/6)
E(Y) = ##\frac{1}{6}n##Let Z = amount of money received → Z = ##\frac{1}{2}Y##
E(Z) = E(1/2 Y) = 1/2 E(Y) = ##\frac{1}{12}n##I got the answer but I am not sure about my working because I didn't...
Check out:
https://www.pfizer.com/news/press-release/press-release-detail/pfizer-initiates-phase-1-study-novel-oral-antiviral
If it works out may change the vaccine landscape entirely.
Thanks
Bill
The St Petersburg Paradox is a game with an infinite expected value, but the 'paradox' is that a rational person would pay a relatively small sum (maybe $20) to play it (see https://en.wikipedia.org/wiki/St._Petersburg_paradox )
So say the government offered you the game with a tax-free payout...
From a retiree’s stack of left behind books, I picked up a copy of Two-Person Game Theory (1966) by Rapoport. Is this an acceptable first (and possibly only) reading on the topic?
I am trying to write a code to guess the secret number. For example, if I have a secret number called 412.
My code will take the inputs as
120 - 0
312 - 2
439 - 1
where the numbers on the right gives the position of the correct digit at the correct location. I have thought some codes but it...
The Sub Photon Sphere Escape (SPSE) Game
Game Board:
Vast Empty Space
Game Pieces:
##\space## 1) A large perfect Schwarzschild black hole
##\space## 2) A Carrier/Trigger. This is a massless device that sets the Player Device into a selected position and velocity and then triggers it...
Armin is trying to decide whether to buy a season pass to his college basketball team's 20 home games this season.
The cost of an individual ticket is \$14, and the cost of a season pass is \$175.
The season pass will admit Armin to any home basketball game at no additional cost.
What is the...
You are playing a number guessing game. A random integer will be chosen from 1 to 299. You get two guesses at the number and your opponent only gets one. Whoever gets closest to the random number when it is chosen is the winner. If you have to make both of your choices before your opponent picks...
Summary:: This is a thread about notating a larger number than the previous poster. That's it.
Well, there's a few more rules.
1) You don't have to actually write it down. You just have to appropriately describe it.
2) Your description must correspond to one and only one natural number.
3) You...
You are given the opportunity to play a game where a coin will be tossed 10,000 times consecutively.
You have a starting bankroll of $1,000,000.
The coin may be biased (you are not given any information as to what the probability or the degree of bias might be). A bet on either heads or tails is...
Game: throw die repeatedly until all numbers 1-5 show up ay least once (win), before a six shows up on the way (lose). Odds of winning?
Note: Someone posted this on another forum and I was able to come up with three different approaches (two very similar). Try to get them.
I'm considering making a Natural Selection Simulator (possibly in Java).
I've always been fascinated with the idea that so many traits can evolve independently of each other in the same population (even little things like tufted ears and loss of tail, etc.) and I want to see it in action.
Like...
We're playing a game with regular, fair, six-sided dice, and we're throwing 14 of them.
The "1" is a "joker", which means it can count as any other number. So, for example, if we roll three "1"s and four "2"s, we have seven "2"s.
What is that probability that we get exactly seven of any face...