From 74ca3fd6966e7a108360b4d50d705c9959f8f195 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Wed, 6 Apr 2022 20:49:54 +0900 Subject: [PATCH] Add GPL3 Licence headers to sources --- back_end/src/db_handler.rs | 8 ++++++++ back_end/src/json_handlers.rs | 8 ++++++++ back_end/src/main.rs | 8 ++++++++ back_end/src/random_helper.rs | 8 ++++++++ front_end/src/ai.rs | 8 ++++++++ front_end/src/constants.rs | 8 ++++++++ front_end/src/game_logic.rs | 8 ++++++++ front_end/src/html_helper.rs | 8 ++++++++ front_end/src/main.rs | 8 ++++++++ front_end/src/random_helper.rs | 8 ++++++++ front_end/src/state.rs | 8 ++++++++ front_end/src/yew_components.rs | 8 ++++++++ 12 files changed, 96 insertions(+) diff --git a/back_end/src/db_handler.rs b/back_end/src/db_handler.rs index f174c31..5e18ea4 100644 --- a/back_end/src/db_handler.rs +++ b/back_end/src/db_handler.rs @@ -1,3 +1,11 @@ +//Four Line Dropper Backend - A server enabling networked multiplayer for Four Line Dropper +//Copyright (C) 2022 Stephen Seo +// +//This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +// +//This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +// +//You should have received a copy of the GNU General Public License along with this program. If not, see . use crate::ai::{get_ai_choice, AIDifficulty}; use crate::constants::{ COLS, GAME_CLEANUP_TIMEOUT, PLAYER_CLEANUP_TIMEOUT, PLAYER_COUNT_LIMIT, ROWS, TURN_SECONDS, diff --git a/back_end/src/json_handlers.rs b/back_end/src/json_handlers.rs index 5c56027..8984f26 100644 --- a/back_end/src/json_handlers.rs +++ b/back_end/src/json_handlers.rs @@ -1,3 +1,11 @@ +//Four Line Dropper Backend - A server enabling networked multiplayer for Four Line Dropper +//Copyright (C) 2022 Stephen Seo +// +//This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +// +//This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +// +//You should have received a copy of the GNU General Public License along with this program. If not, see . use crate::db_handler::{CheckPairingType, DBHandlerRequest, GetIDSenderType}; use std::{ diff --git a/back_end/src/main.rs b/back_end/src/main.rs index b078ae5..e34b272 100644 --- a/back_end/src/main.rs +++ b/back_end/src/main.rs @@ -1,3 +1,11 @@ +//Four Line Dropper Backend - A server enabling networked multiplayer for Four Line Dropper +//Copyright (C) 2022 Stephen Seo +// +//This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +// +//This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +// +//You should have received a copy of the GNU General Public License along with this program. If not, see . mod ai; mod constants; mod db_handler; diff --git a/back_end/src/random_helper.rs b/back_end/src/random_helper.rs index 208589e..96d2d28 100644 --- a/back_end/src/random_helper.rs +++ b/back_end/src/random_helper.rs @@ -1,3 +1,11 @@ +//Four Line Dropper Backend - A server enabling networked multiplayer for Four Line Dropper +//Copyright (C) 2022 Stephen Seo +// +//This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +// +//This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +// +//You should have received a copy of the GNU General Public License along with this program. If not, see . use oorandom::Rand32; use rand::prelude::*; diff --git a/front_end/src/ai.rs b/front_end/src/ai.rs index 6b78424..3554084 100644 --- a/front_end/src/ai.rs +++ b/front_end/src/ai.rs @@ -1,3 +1,11 @@ +//Four Line Dropper Frontend/Backend - A webapp that allows one to play a game of Four Line Dropper +//Copyright (C) 2022 Stephen Seo +// +//This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +// +//This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +// +//You should have received a copy of the GNU General Public License along with this program. If not, see . use std::collections::BTreeMap; use crate::constants::{AI_EASY_MAX_CHOICES, AI_NORMAL_MAX_CHOICES, COLS, ROWS}; diff --git a/front_end/src/constants.rs b/front_end/src/constants.rs index dcac6ea..e4eceb7 100644 --- a/front_end/src/constants.rs +++ b/front_end/src/constants.rs @@ -1,3 +1,11 @@ +//Four Line Dropper Frontend/Backend - A webapp that allows one to play a game of Four Line Dropper +//Copyright (C) 2022 Stephen Seo +// +//This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +// +//This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +// +//You should have received a copy of the GNU General Public License along with this program. If not, see . pub const ROWS: u8 = 8; pub const COLS: u8 = 7; diff --git a/front_end/src/game_logic.rs b/front_end/src/game_logic.rs index ef22724..9d00768 100644 --- a/front_end/src/game_logic.rs +++ b/front_end/src/game_logic.rs @@ -1,3 +1,11 @@ +//Four Line Dropper Frontend/Backend - A webapp that allows one to play a game of Four Line Dropper +//Copyright (C) 2022 Stephen Seo +// +//This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +// +//This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +// +//You should have received a copy of the GNU General Public License along with this program. If not, see . use crate::constants::{COLS, ROWS}; use crate::state::{BoardState, BoardType}; diff --git a/front_end/src/html_helper.rs b/front_end/src/html_helper.rs index 8da238e..a727393 100644 --- a/front_end/src/html_helper.rs +++ b/front_end/src/html_helper.rs @@ -1,3 +1,11 @@ +//Four Line Dropper Frontend - A webapp that allows one to play a game of Four Line Dropper +//Copyright (C) 2022 Stephen Seo +// +//This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +// +//This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +// +//You should have received a copy of the GNU General Public License along with this program. If not, see . use js_sys::{Function, JsString, Promise}; use std::collections::HashMap; use wasm_bindgen::{JsCast, JsValue}; diff --git a/front_end/src/main.rs b/front_end/src/main.rs index a200b4e..32a8202 100644 --- a/front_end/src/main.rs +++ b/front_end/src/main.rs @@ -1,3 +1,11 @@ +//Four Line Dropper Frontend - A webapp that allows one to play a game of Four Line Dropper +//Copyright (C) 2022 Stephen Seo +// +//This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +// +//This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +// +//You should have received a copy of the GNU General Public License along with this program. If not, see . mod ai; mod constants; mod game_logic; diff --git a/front_end/src/random_helper.rs b/front_end/src/random_helper.rs index 16456db..beeb694 100644 --- a/front_end/src/random_helper.rs +++ b/front_end/src/random_helper.rs @@ -1,3 +1,11 @@ +//Four Line Dropper Frontend - A webapp that allows one to play a game of Four Line Dropper +//Copyright (C) 2022 Stephen Seo +// +//This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +// +//This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +// +//You should have received a copy of the GNU General Public License along with this program. If not, see . use js_sys::Math::random; use oorandom::Rand32; diff --git a/front_end/src/state.rs b/front_end/src/state.rs index abea9a8..2fd5d6f 100644 --- a/front_end/src/state.rs +++ b/front_end/src/state.rs @@ -1,3 +1,11 @@ +//Four Line Dropper Frontend/Backend - A webapp that allows one to play a game of Four Line Dropper +//Copyright (C) 2022 Stephen Seo +// +//This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +// +//This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +// +//You should have received a copy of the GNU General Public License along with this program. If not, see . use crate::ai::AIDifficulty; use crate::constants::{COLS, ROWS}; use crate::game_logic::{check_win_draw, WinType}; diff --git a/front_end/src/yew_components.rs b/front_end/src/yew_components.rs index 567ad17..d587b1e 100644 --- a/front_end/src/yew_components.rs +++ b/front_end/src/yew_components.rs @@ -1,3 +1,11 @@ +//Four Line Dropper Frontend - A webapp that allows one to play a game of Four Line Dropper +//Copyright (C) 2022 Stephen Seo +// +//This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +// +//This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +// +//You should have received a copy of the GNU General Public License along with this program. If not, see . use crate::ai::{get_ai_choice, AIDifficulty}; use crate::constants::{ AI_CHOICE_DURATION_MILLIS, BACKEND_TICK_DURATION_MILLIS, BACKEND_URL, COLS,