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
3
votes
1 answer

PACMAN: a short path for eating all the dots

I am trying to find a solution for the PACMAN problem of finding a short path (not the shortest, but a good one) that eats all the dots in a big maze. I've seen a lot of people talking about TSP, Dijsktra, BFS, A*. I don't think this is a TSP since…
2
votes
2 answers

Pacman collision detection

I am trying to create a pacman game to learn XNA, but I am having some problems to get the collision detection working. The game is tile based, where 1 is a wall and 0 is walkable. It then takes the tile you are standing on plus the 4 around it, and…
Androme
  • 2,399
  • 4
  • 43
  • 82
2
votes
2 answers

Drawing Pacman's Face in Tkinter

So I'm coding Pacman in Python just for fun and I want to create pacman's open face (when he is eating food) using Tkinter graphics. How exactly do I draw an open face? I was thinking about using canvas.create_arc to create the open mouth but it…
Aniruddh Chaturvedi
  • 623
  • 3
  • 9
  • 19
2
votes
1 answer

Artix signature is unknown trust

I installed artix-mate-openrc a day ago. Their repo is too short and I wanted to add archlinux repo (community and extra) to add alacritty and other apps I needed. They do have a program in their repo (artix-archlinux-support) which adds it for you…
robot
  • 21
  • 2
2
votes
1 answer

Pathfinding javascript with obstacles

I'm working on a custom Pacman game using Javascript canvas. I have different classes, one for the player, another one for the enemies and another one for the walls in the board. Inside my wall class I have the following code: class Wall…
Raúl
  • 159
  • 1
  • 10
2
votes
1 answer

Berkeley AI class - PacMan food heuristic without mazeDistance?

I'm taking a similar class to Berkeley's AI class, and I'm trying to find the foodHeuristic for Q7(questions can be found here), however I'm not allowed to use mazeDistance as it's implementation uses BFS, which expands nodes. I have simply no idea…
ChikChak
  • 936
  • 19
  • 44
2
votes
1 answer

How do I randomly move objects in a maze using pygame?

This is a code for Pac-Man. I already have a moving Pac-man and the collision w/ the ghosts, but I don't know how to make them randomly move on the map. I don't need them to chase the Pac-Man, just to slide randomly through the map and change…
Marina
  • 81
  • 3
2
votes
1 answer

Collision Detection Not working in Game of Pac-Man

I am making my own game of pac-man and am having difficulty getting the collision detection between my surrounding div and the "pac-man". Here is the css for my the character (which is a square for now) and the border surrounding the entire…
Nick
  • 69
  • 5
2
votes
0 answers

Algorithm to see if pacman is "trapped" between ghosts, i.e. game is unwinnable

I am currently working on a Pacman AI heuristic, and have run into some trouble which involves Pacman becoming "trapped" between two ghosts. I need some way, given a board state with any useful information provided (coordinates + direction of all…
Fraser Price
  • 899
  • 6
  • 15
  • 36
2
votes
0 answers

R's pacman package, can it download dependencies too

Does pacman's p_load have the option to download all dependencies? I searched around the documentation but could not find an argument in the p_load function. I guess I could list the dependencies via p_depends and the pass the results to p_load. But…
DavidH
  • 619
  • 2
  • 8
  • 15
2
votes
0 answers

Pacman ghost moving randomly

Ghosts have to move in one compass direction (N, S, E or W) until they reach an intersection, at which point they can turn left or right; and they will also change direction if they hit obstructions / walls. CellType == 'x' is my wall int x =…
jim
  • 39
  • 3
2
votes
1 answer

game won't quit properly

This is my code (It's a pacman game type) It runs but when the character in this case the reaper dies when he collides with an exorcist the game will crash instead of showing the game over sign enter code here`#! /usr/bin/env python import os,…
2
votes
1 answer

moving pacman in swift

i am brand new to swift and i am trying to program a pacman. i am trying to move the pacman to the direction of the swipe, so far i have managed to move it to the edges of the screen, the problem is that when i try to move it not from the edge of…
Basil
  • 23
  • 4
2
votes
1 answer

Refreshing JTable step by step in Java

I am doing a Pacman game using A* algorithm in Java. I searched a lot of questions. I found a solution for one step. But I want to refresh my table in while block and my solution is just refreshing JTable according to the last step(just showing the…
melomg
  • 737
  • 3
  • 20
  • 39
2
votes
1 answer

Saving data to malloc'd 2dim array doesn't work in C

I'm writing a simple game in C. So I'm trying to save some data to a 2dim array which I malloc'd correctly. The problem is though when I want to pass that variable I wrote to, to another function. int readMap(FILE *eingabe, map_t *map, config_t…
iPh1ps99
  • 97
  • 1
  • 7
1 2
3
16 17