Questions tagged [pacman]

Pacman is an arcade game developed by Namco and licensed for distribution in the United States by Midway, first released in Japan on May 22, 1980. For the package manager of the same name, use [pacman-package-manager] instead.

Pacman is an arcade game developed by Namco and licensed for distribution in the United States by Midway, first released in Japan on May 22, 1980.

Screenshot of play area

241 questions
2
votes
1 answer

Findall with lists for Pacman netlogo game

I'm a beginner at prolog and I'm trying to make pacman move by itself using netlogo and prolog. So this is part of my code: walkfront(_,_,_,_,_,_,Pacman,DirP,Lab,Ghost,_,Pellet,_,_,Decision) :- findall(Dir, (…
Niammi
  • 76
  • 1
  • 7
2
votes
2 answers

Moving jLabel to a different place in the jPanel (Pacman like game)

I'm making a game like pacman and so far I am just starting with the grid. I got the grid started but I need to figure out how to move something to a different place in the grid so that when the user clicks or my ghosts move, it will display on the…
Caleb L
  • 139
  • 1
  • 9
2
votes
4 answers

Countdown timer for pygame

I asked a question earlier about a multiple collision detection but I don't have the skill to create code to fix that problem instead I am just adding a second wall and trying to put in a timer. My question is how do I put a timer into my code? …
Lucas Murphy
  • 23
  • 1
  • 1
  • 5
2
votes
3 answers

Pacman clone, how can I keep the pacman moving when a button is pressed in a direction inaccessible

Sorry guys, I don't know if the title is the best way to explain it. I'm making a pacman clone in java with libgdx. I've got the map rendered and collision detection on the tiles working. The only problem, the pacman is suppose to keep moving no…
Bassex
  • 67
  • 6
2
votes
4 answers

TypeError: argument of type 'instance' is not iterable

So heres my code and it breaks at the line: if (suc not in sFrontier) or (suc not in sExplored): giving the error: TypeError: argument of type 'instance' is not iterable """ The pseudocode I'm following initialize the frontier using the…
user1305599
  • 23
  • 1
  • 2
  • 5
1
vote
2 answers

Java IO, reading from a file and printing to a 2d character array

So I'm working on an assignment for my game design class to build a pacman clone, it'll be throughout the semester. Currently I've got a text file that is the pacman maze see below…
Eogcloud
  • 1,335
  • 4
  • 19
  • 44
1
vote
1 answer

pacman: symbol lookup error: /usr/lib/libcurl.so.4: undefined symbol: libssh2_session_set_read_timeout

I'm facing this issue in my wsl 2.0 Arch. After I update curl via pacman this error shows up. pacman: symbol lookup error: /usr/lib/libcurl.so.4: undefined symbol: libssh2_session_set_read_timeout Something similar was showing when try to use curl…
Dajmond
  • 21
  • 3
1
vote
4 answers

Able to find path using DFS but not able specify the right directions to Pacman _ Python

I am working on an assignment found on an AI course page at berkley website for fun. I need to write a depth-first search for the pacman game so that it can find its path.The problem is the pacman gets stuck. I'll paste the code first to make what I…
trailblazer
  • 215
  • 1
  • 3
  • 10
1
vote
0 answers

How to install mingw-w64-x86_64-cmake at Ubuntu

Per this URL, https://packages.msys2.org/package/mingw-w64-x86_64-cmake, I use the command as follows to install mingw-w64-x86_64-cmake. It complains Unable to locate package mingw-w64-x86_64-cmake sudo pacman -S mingw-w64-x86_64-cmake Reading…
user20208419
  • 121
  • 1
  • 11
1
vote
0 answers

how to proportion a matrix of 0 and 1 numpy

I state that I am creating a pacman reinforcement training. The idea is to encode the positions of objects throughout the map (walls, ghosts, cookies, powers, etc ...) in an n-dimensional tensor of 0 and 1 The situation is this, the game map is a…
1
vote
2 answers

How to make ghost in pacman move slower? Python

I'm writing pacman in pygame. I've got a problem with ghost moving. It is moving too fast. When it moves by speed 1, it is very fast. When the speed is 0.1, my code doesn't work. Here is the ghost movement code: #GHOST MOVE move_list = ['right',…
1
vote
1 answer

Is BFS or DFS an efficient search algorithm for Ms Pacman

I am working on implementing a search algorithm for the Ms Pacman AI. I thought it would be a good idea to start off with some basic searches like BFS or DFS. I just implemented a BFS but when i ran my code, ms pacman ran into a wall. I was…
1
vote
1 answer

Anyone know why pacman is not respecting the walls? When i press the keys to move pacman teleports between the walls

i'm trying to make a pacman game like pygame, now i just want him to walk through the maze without going beyond the walls of the maze. However I have faced some problems, when I press the keys to move the pacman, he ends up telephoning between the…
1
vote
1 answer

Why does my Alpha-Beta pruning expand more nodes than necessary?

I am currently implementing an alpha-beta pruning algorithm for a minimax function. This exercise corresponds to the multiagent section of the PacMan Project at Berkeley University. My implementation: class AlphaBetaAgent(MultiAgentSearchAgent): …
MaAlonsoA
  • 11
  • 7
1
vote
0 answers

How can I check for collisions against a rectangle shape in sfml

I'm trying to check for collisions against a shape stored in a 2D array. I'm trying to use for logic in a Pacman clone I'm creating. I have no issue detecting collisions between two sprites, however I cannot seem to get it to detect a collision…
broncoian2
  • 59
  • 5