clippy
This commit is contained in:
parent
9f6be9b669
commit
f18fedd5cc
@ -1,10 +1,10 @@
|
|||||||
use crate::{
|
use crate::{
|
||||||
agent::Agent,
|
agent::Agent,
|
||||||
board::{Board, BOARD_SIZE},
|
board::{Board, BOARD_SIZE},
|
||||||
misc::{offsets, split_from},
|
misc::offsets,
|
||||||
piece::Piece,
|
piece::Piece,
|
||||||
};
|
};
|
||||||
use rand::{seq::IteratorRandom, Rng};
|
use rand::seq::IteratorRandom;
|
||||||
|
|
||||||
pub struct ComplexAgent {
|
pub struct ComplexAgent {
|
||||||
color: Piece,
|
color: Piece,
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
use agent::QueueAgent;
|
|
||||||
use complexagent::ComplexAgent;
|
use complexagent::ComplexAgent;
|
||||||
use game::Game;
|
use game::Game;
|
||||||
use piece::Piece;
|
use piece::Piece;
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
use std::{iter::Rev, ops::RangeInclusive};
|
use std::{iter::Rev, ops::RangeInclusive};
|
||||||
|
|
||||||
use num::CheckedSub;
|
|
||||||
|
|
||||||
pub fn split_from<T>(min: T, max: T, x: T) -> Vec<Vec<T>>
|
pub fn split_from<T>(min: T, max: T, x: T) -> Vec<Vec<T>>
|
||||||
where
|
where
|
||||||
T: num::Integer + Copy,
|
T: num::Integer + Copy,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user