NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io


/* ************************************************************************** *//* *//* ::: :::::::: *//* main.c :+: :+: :+: *//* +:+ +:+ +:+ *//* By: lyoung <[email protected]> +#+ +:+ +#+ *//* +#+#+#+#+#+ +#+ *//* Created: 2017/08/23 12:53:39 by lyoung #+# #+# *//* Updated: 2017/08/23 12:56:29 by lyoung ### ########.fr *//* *//* ************************************************************************** */ #include "../filler.h" void print_map(t_filler *data){ int y; int x; y = 0; while (y < data->map.bound_y) { x = 0; while (x < data->map.bound_x) { ft_printf("%4d", data->map.heatmap[y][x]); x++; } ft_printf("n"); y++; }} void print_piece(t_filler *data){ int y; int x; y = 0; while (y < data->piece.trim_y) { x = 0; while (x < data->piece.trim_x) { ft_printf("%c ", data->piece.trimmed[y][x]); x++; } ft_printf("n"); y++; }} void set_map(t_filler *data){ int i; data->map.board = (char **)malloc(sizeof(char *) * data->map.bound_y); i = 0;

Find
No Results

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lyoung <[email protected]> +#+ +:+ +#+ */
/*
read.c
heatmap.c
trim_piece.c
place_piece.c
3334353637383940414243444546474849505152535455565758313226272829301516171819202122232425131459606162636465
{ if (data->player.pos_y >= data->opponent.pos_y) return (2); else return (3); }} void place_piece(t_filler *data){ int rel_x; int rel_y; int y; int x; rel_x = data->player.pos_x - data->opponent.pos_x; rel_y = data->player.pos_y - data->opponent.pos_y; if (ft_abs(rel_x) >= ft_abs(rel_y)) { x = (rel_x >= 0) ? data->player.min_x : data->player.max_x; if (rel_y >= 0) { y = data->player.min_y; while (y <= data->player.max_x) { if (data->map.board[y][x] == data->player.ch) } else { if (data->player.pos_y >= data->opponent.pos_y) return (0); else return (1);int check_place(t_filler *data, int x, int y){ if (x < 0 || x >= data->map.bound_x) return (0); else if (y < 0 || y >= data->map.bound_y) return (0);} int quadrant(t_filler *data){ if (data->player.pos_x >= data->opponent.pos_x)#include "../filler.h" check_place(data, x, y); } } y = (rel_y >= 0) ? data->player.min_y : data->player.max_y; } y = (data->player.pos_y > data->opponent.pos_y) ? }

Find
No Results

}
else
{
if (data->player.pos_y >= data->opponent.pos_y)
return (2);
else
return (3);
}
}

PROBLEMS
OUTPUT
DEBUG CONSOLE
TERMINAL


W
------------------------------------------------------------
~/42/github/filler.git(master*) » cat input.txt | ./filler lyoung@e1z3r9p8
50 100 50 25 12 6 3 1 3 6 12 25 50 100 50 25 12 6 3 1 0 0 0 0 0 0 1 0 0 0
50 100 50 25 12 6 3 1 3 6 12 25 50 100 50 25 12 6 3 1 0 0 0 0 0 0 1 0 0 0
50 100 50 25 12 6 3 1 3 6 12 25 50 100 50 25 12 6 3 1 0 0 0 0 0 0 1 0 0 0
50 100 50 25 12 6 -1 -1 -1 6 12 25 50 100 50 25 12 6 3 1 0 0 0 0 0 0 1 0 0 0
50 100 50 25 12 6 -1 -1 3 6 12 25 50 100 50 25 12 6 3 1 0 0 0 0 0 0 1 0 0 0
50 100 50 25 12 6 3 -1 3 6 12 25 50 100 50 25 12 6 3 1 0 0 0 0 0 0 1 0 0 0
50 100 50 25 12 6 3 1 3 6 12 25 50 100 50 25 12 6 3 1 0 0 0 0 0 0 1 0 0 0
50 100 50 25 12 6 3 3 3 6 12 25 50 100 50 25 12 6 3 1 1 1 1 1 1 1 1 1 1 1
50 100 50 25 12 6 6 6 6 6 12 25 50 100 50 25 12 6 3 1 0 0 0 0 0 0 1 0 0 0
50 100 50 25 12 12 12 12 12 12 12 25 50 100 50 25 12 6 3 1 0 0 0 0 0 0 1 0 0 0
50 100 50 25 25 25 25 25 25 25 25 25 50 100 50 25 12 6 3 1 0 0 0 0 0 0 1 0 0 0
50 100 50 50 50 50 50 50 50 50 50 50 50 100 50 25 12 6 3 1 0 0 0 0 0 0 1 0 0 0
50 100 100 100 100 100 100 100 100 100 100 100 100 100 50 25 12 6 3 1 0 0 0 0 0 0 1 0 0 0
25 50 50 50 50 50 50 50 50 50 50 50 50 50 25 12 6 3 1 0 0 0 0 0 0 0 1 0 0 0
. * * * *
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.