Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code refactoring #10

Open
mohamedLazyBob opened this issue Nov 25, 2020 · 0 comments
Open

code refactoring #10

mohamedLazyBob opened this issue Nov 25, 2020 · 0 comments

Comments

@mohamedLazyBob
Copy link
Owner

the struct t_player should be placed inside the other struct t_input_data since it's also an input from the user.
the end result well be somthing like this :

typedef struct	s_playrs
{
	t_header		header;
	unsigned char	*exec_code;
}				t_playrs;


typedef struct	s_input_data
{
	int		players_counter;
	char	*names[MAX_PLAYERS];
	int		ids[MAX_PLAYERS];
	int		nbr_cycles[2];
	int		fd[MAX_PLAYERS];
	int		visu;
	t_playrs	*players; // add this 
}				t_input_data;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant