Rename names for better readability

This commit is contained in:
2024-07-16 20:54:29 +03:00
parent ae95a941a2
commit b24190fd62
6 changed files with 139 additions and 142 deletions

View File

@@ -19,24 +19,24 @@ pub enum MoveType {
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone, Copy)]
pub struct Move {
pub source: usize,
pub target: usize,
pub src: usize,
pub dst: usize,
pub move_type: MoveType,
}
impl Move {
pub const fn new(source: usize, target: usize) -> Self {
pub const fn new(src: usize, dst: usize) -> Self {
Self {
source,
target,
src,
dst,
move_type: MoveType::Quiet,
}
}
pub const fn new_with_type(source: usize, target: usize, move_type: MoveType) -> Self {
pub const fn new_with_type(src: usize, dst: usize, move_type: MoveType) -> Self {
Self {
source,
target,
src,
dst,
move_type,
}
}