cleanup
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
use crate::{
|
||||
agent::Agent,
|
||||
board::{Board, BOARD_SIZE},
|
||||
misc::offsets,
|
||||
piece::Piece,
|
||||
};
|
||||
use rand::{rngs::ThreadRng, seq::IteratorRandom};
|
||||
|
||||
pub struct ComplexAgent {
|
||||
color: Piece,
|
||||
rng: ThreadRng,
|
||||
}
|
||||
|
||||
impl Agent for ComplexAgent {
|
||||
@@ -36,9 +33,6 @@ impl Agent for ComplexAgent {
|
||||
|
||||
impl ComplexAgent {
|
||||
pub fn new(color: Piece) -> Self {
|
||||
Self {
|
||||
color,
|
||||
rng: rand::rng(),
|
||||
}
|
||||
Self { color }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user