Skip to content
Snippets Groups Projects
Commit 70b5cbfb authored by leonard.beck's avatar leonard.beck :zzz:
Browse files

Revert "debug, cleanup and gitignore"

This reverts commit 6e536b36
parent ece6f0df
Branches
Tags
No related merge requests found
*.o
onearmedbandit
......@@ -3,11 +3,10 @@
#include <assert.h>
#include <unistd.h>
#include <pthread.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include "utilities.h"
#include "display.h"
#include "wheel.h"
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
// the following global variables are defined for graphical objects only:
// the images size is 104x128 pixels
......@@ -69,7 +68,7 @@ void *display_func(void *param)
int wheel_func(double index){ // rename?
int wheel_func(double index){
// -------------------------
......
display.o 0 → 100644
File added
File added
......@@ -4,24 +4,22 @@
#include <stdbool.h>
#include <assert.h>
#include <unistd.h>
// #include <pthread.h>
#include <pthread.h>
#include <semaphore.h>
#include "utilities.h"
#include "display.h"
#include "one_armed_bandit.h"
// #include "wheel.h"
#include "threads.h"
int insert_coin(){
return -1;
}
int set_wheel_speed(int index){
return -1;
}
int next_wheel(){
return -1;
}
......
#ifndef ONE_ARM_H
#define ONE_ARM_H
#include "wheel.h"
#define OBJECT_NB 7
#define WHEEL_NB 3
......
File added
......@@ -3,9 +3,19 @@
* Small library to ease the use of pthread
*/
//TODO: MALLOOOOOOOCC
/*
___ _
/ _ )___ _________(_)__ ____
/ _ / _ `/ __/ __/ / -_) __/
/____/\_,_/_/ /_/ /_/\__/_/
|^| |^| |^| |^|
| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |
| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |
| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |
*/
#define __GNU_SOURCE
// #include <stdio.h>
......
File added
int set_speed(int s){
return -1;
}
int get_current_px(){
return -1;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment