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

debug, cleanup and gitignore

parent 5a229e8c
No related branches found
No related tags found
No related merge requests found
*.o
onearmedbandit
...@@ -3,10 +3,11 @@ ...@@ -3,10 +3,11 @@
#include <assert.h> #include <assert.h>
#include <unistd.h> #include <unistd.h>
#include <pthread.h> #include <pthread.h>
#include "utilities.h"
#include "display.h"
#include <SDL2/SDL.h> #include <SDL2/SDL.h>
#include <SDL2/SDL_image.h> #include <SDL2/SDL_image.h>
#include "utilities.h"
#include "display.h"
#include "wheel.h"
// the following global variables are defined for graphical objects only: // the following global variables are defined for graphical objects only:
// the images size is 104x128 pixels // the images size is 104x128 pixels
...@@ -68,7 +69,7 @@ void *display_func(void *param) ...@@ -68,7 +69,7 @@ void *display_func(void *param)
int wheel_func(double index){ int wheel_func(double index){ // rename?
// ------------------------- // -------------------------
......
File deleted
File deleted
...@@ -4,22 +4,24 @@ ...@@ -4,22 +4,24 @@
#include <stdbool.h> #include <stdbool.h>
#include <assert.h> #include <assert.h>
#include <unistd.h> #include <unistd.h>
#include <pthread.h> // #include <pthread.h>
#include <semaphore.h> #include <semaphore.h>
#include "utilities.h" #include "utilities.h"
#include "display.h" #include "display.h"
#include "one_armed_bandit.h" #include "one_armed_bandit.h"
// #include "wheel.h"
#include "threads.h"
int insert_coin(){ int insert_coin(){
return -1;
} }
int set_wheel_speed(int index){ int set_wheel_speed(int index){
return -1;
} }
int next_wheel(){ int next_wheel(){
return -1;
} }
......
#ifndef ONE_ARM_H #ifndef ONE_ARM_H
#define ONE_ARM_H #define ONE_ARM_H
#include "wheel.h"
#define OBJECT_NB 7 #define OBJECT_NB 7
#define WHEEL_NB 3 #define WHEEL_NB 3
......
File deleted
...@@ -3,19 +3,9 @@ ...@@ -3,19 +3,9 @@
* Small library to ease the use of pthread * Small library to ease the use of pthread
*/ */
//TODO: MALLOOOOOOOCC
/*
___ _
/ _ )___ _________(_)__ ____
/ _ / _ `/ __/ __/ / -_) __/
/____/\_,_/_/ /_/ /_/\__/_/
|^| |^| |^| |^|
| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |
| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |
| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |
*/
#define __GNU_SOURCE #define __GNU_SOURCE
// #include <stdio.h> // #include <stdio.h>
......
File deleted
int set_speed(int s){ int set_speed(int s){
return -1;
} }
int get_current_px(){ 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