Questions tagged [game]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
62 views

How to find optimizers with computer in this kind of minimax problem

I have a minimax problem of the form $$\max_{\substack{u_1,\dots,u_n \ge 0 \\ u_1+\dots+u_n = 1}} \min_{\substack{v_1,\dots,v_m \ge 0 \\ v_1+\dots+v_m = 1 \\ v_{j_1} \le v_{j_2} \hspace{1mm} \forall (...
user avatar
10 votes
5 answers
923 views

How can I efficiently calculate exact probability distributions for D&D dice like "4d8"?

I play a lot of tabletop role-playing games, and I have been interested recently in modeling the various game mechanics involving dice. As I see it, a single throw of an eight-sided die can be modeled ...
user avatar
  • 2,118
1 vote
1 answer
286 views

How to Create an Efficient Word Square Algorithm?

I am working on the Wolfram Challenge Babbage Squares. I have looked at the following resources in order to come up with an idea for how to find all the possible word squares: Word Squares and Beyond ...
user avatar
-1 votes
1 answer
101 views

Is it possible to create Android App Bundle (aab) for Google play with Wolfram language/Mathematica?

Mathematica is excellent tool but I don't know if is it possible to create Android App Bundle (aab) for Google play with Wolfram language/Mathematica or not? Please advise or share your opinion/idea ...
user avatar
  • 125
1 vote
0 answers
33 views

Automatic import of the lexicon for the Game of Life

I am trying to import the lexicon for the Game of Life, preserving the structured information as far as possible automatically (so if the data changes a future import will update it). The text form of ...
user avatar
  • 2,632
1 vote
1 answer
139 views

Number guessing game to 1-100

My code is ...
user avatar
  • 11
1 vote
1 answer
131 views

code in mathematica for the game of guessing

Can we write code in Mathematica for the game where the user guesses an integer between 1-99 produced by the computer? If you have any ideas, I would be glad if you could help. I tried this: ...
user avatar
  • 11
1 vote
0 answers
55 views

How do I publish a game I made in Mathematica so that anyone can play it who is unfamiliar with Mathematica?

I'm trying to figure out how to publish a game so a friend can play it by just providing a link to it. Is that possible or do they have to have an account or be tech savvy?
user avatar
1 vote
0 answers
59 views

ArrayPlot rasterization to PDF blurry

...
user avatar
  • 369
2 votes
1 answer
106 views

Plot of TU game on Windows

i need to make a barycentric plot including core vertices of the following TU cost game: c(1)<=150 c(2)<=100 c(3)<=100 c(1,2)<=200 c(1,3)<=200 c(2,3)<=200 c(1,2,3)<=200 ...
user avatar
  • 23
4 votes
0 answers
103 views

Neural network for a simple game?

I'm taking a class that is based on the Mathematica coding language, and we must do a 6-week final project. I am considering coding a neural network for a simple game like 2048, pacman, snake, etc. ...
user avatar
4 votes
0 answers
241 views

Image-based reinforcement learning with neural networks

After seeing that "OpenAIGym" is not exactly supported on Windows and playing around with https://www.wolfram.com/language/12/neural-network-framework/train-an-...
user avatar
1 vote
2 answers
85 views

problem with maximize function and envelope function

I Have the problem with the maximize of this problem: ...
user avatar
4 votes
1 answer
262 views

TuGames package does not run

I downloaded the package TuGames from http://library.wolfram.com/infocenter/MathSource/5709/ to calculate Shapley Values in cooperative bargaining games. I got it to work earlier today but after ...
user avatar
7 votes
1 answer
182 views

How to generate optimal solution and order the rest

This is a decimal maze, you start with 100 points and you must choose the path that gives you the highest score. Rule: You should not go twice for the same point and the same segment. My question: Is ...
user avatar
  • 149
2 votes
1 answer
82 views

Input without dialog

I'm programming a game, similar to a Sudoku in the sense that you have to put numbers in a grid. When Sudoku is played in a computer, (for instance, in https://www.chiark.greenend.org.uk/~sgtatham/...
user avatar
9 votes
1 answer
430 views

Sophisticated API integrations / Making a card game in Mathematica

Earlier today I saw that there was a deck of cards API. It's a relatively simple API, but it does require us to handle statefulness. How can I link to this to, e.g., build out a Mathematica version ...
user avatar
  • 45.6k
2 votes
1 answer
443 views

24 Math Game Algorithm?

Object of the game: Given 4 positive integer numbers, perform elementary operations on the 4 numbers so that the result gives you 24. i.e. given 9,6,5,3 a correct way to yield 24 is (6-3)*5+9 = 24 ...
user avatar
10 votes
1 answer
243 views

Hanoi Tower minimum moves between any two states

Goal: I want to make some gifs which show minimum moves between two states. All the avaliable states can be written as a graph, Hanoi Graph, GraphData[{"Hanoi",n}]...
user avatar
  • 3,696
5 votes
0 answers
561 views

Chess in Mathematica

Is there a Mathematica chess package? I'm trying to generate GIFs from chess PGNs. Additionally, I like to try some chess algorithms against a chess engine and watch the game and run statistical ...
user avatar
  • 1,783
3 votes
1 answer
237 views

webmathematica to share my game?

I wrote the code for a puzzle game. It's written in a notebook that I would like to share on the internet: ...
user avatar
4 votes
1 answer
825 views

Convert image of graph to Graph [duplicate]

The board game Ticket To Ride has a board readily represented as a graph. I have an image of a graph (taken from BoardGameGeek) that I'd like to convert to graph in Mathematica for further analysis. ...
user avatar
  • 1,288
1 vote
0 answers
74 views

How to put images on a map so that they disapear when another image passes over them

We are working to create a pacman type of game and we cannot figure out for to get colored dots on the maze to represent the food the pacman eats. Here is our code so far: ...
user avatar
48 votes
4 answers
3k views

The Game of Hex in Mathematica

The Game of Hex is a game originally developed by Nash, and it's rules are very simple. You start out with a hexagonal tiling of some size: There are two players. The game is in turns, and every time ...
user avatar
  • 3,574
38 votes
2 answers
917 views

Can Mathematica put these puzzle pieces together?

I have five DXF files with various geometric figures. Are squares with a different geometric shape in each DXF file... Four DXF files have a square with a different geometric shape on one side while ...
user avatar
  • 9,065
17 votes
2 answers
2k views

Programming the fiver game

Obviously, even if I ask a lot of question I am, obviously, still a dummy!!!! I want to program the fiver game. It's a very simple game played solitary on a $5 \times 5$ the rule is elementary : if ...
user avatar
7 votes
3 answers
280 views

Can Mathematica help me win my on-line game?

I've become addicted to the Forge of Empires web browser game. Presently, the game has a special event going on, which is in commemoration of the 2016 EUFA Soccer Championship. The event has a set ...
user avatar
2 votes
0 answers
115 views

How to use Mathematica to help me get highest score in every layout? [closed]

The game is hitting the headline in these day and everyone can click this link to play it.The game have a very simple rule like following: Game Rule It will give you a initial layout when you click "...
user avatar
  • 24.6k
3 votes
1 answer
351 views

Can I make a simple game in Mathematica?

Here is the game outline: $\hspace{2.5cm}$ There is one player. The player ($\mathscr{L}$) moves from node to node limited by the directed arrows. As the player moves, $\mathscr{G}_{\Huge\cdot}$ ...
user avatar
  • 31
4 votes
0 answers
263 views

Something like MATLAB Cody for Mathematica? (Learning through exercises.)

At some rainy days, when I realise again the TV program is getting worse and worse ... I visit Cody: Cody™ is a MATLAB Central game that challenges and expands your knowledge of MATLAB. As a web ...
user avatar
  • 1,553
8 votes
1 answer
474 views

How can I improve my prediction for the end time of the Reddit button game?

There is an April Fools game on Reddit where users with accounts can press a button (once) to reset a 60 second countdown timer: https://www.reddit.com/r/thebutton http://www.redditblog.com/2015/04/...
user avatar
2 votes
0 answers
621 views

Nash equilibrium in game theory?

Are there examples of the solution of Nash non-cooperative games with mixed or pure strategies? How could be implemented in Mathematica 10?
user avatar
30 votes
1 answer
698 views

Minesweeper: How to Dynamic a lot of graphics with high-speed?

Recently I've implemented Minesweeper in Mathematica. ...
user avatar
  • 3,623
10 votes
1 answer
2k views

Poor performance from Graphics3D

I wrote a game -- 2048,Some codes are from http://blog.wolfram.com/. My codes are in notebook downloads I added code so that the game can play in 3D form, but when I play it, I find that it is too ...
user avatar
  • 3,623
5 votes
3 answers
2k views

How to plot a coalition game?

Consider a game of a function $v$ which has \begin{align} v(1) & \geq 1\\ v(2) & \geq 0\\ v(3) & \geq 1\\ v(1,2) &\geq 4\\ v(1,3) &\geq 3\\ v(2,3) &\geq 5\\ v(1,2,3) &...
user avatar
11 votes
2 answers
2k views

How to optimally solve and generalize this Conway's Game of Life puzzle

I tried solving this using mma. I am aware of this command - Cellular automata. But i don't want to use that coz then there is no challenge. So below is how i did it and my question is can this be ...
user avatar
  • 3,564