Now if we can just find enough bamboo (or the functional equal) and dig that moat with the excavating tools we have. What four feet wide you say? How deep? 48 linear feet of four feet wide by only four feet deep would be -- hmmmm - 768 cubic feet - 28 cubic yards - 22 cubic meters - tons and tons.
Soil can be pretty rocky out west. Hard to dig even 12 inches/31 cm deep. Very little bamboo. Crooked pine and fir. Some alder and aspin in the valleys, but it's very soft wood.
Or you can build that fire. Pine and fir burn great.
Stupid bears.
Once upon a time, you threw a rope over a tree limb, hoisted your "bear bag," and tied it off to a tree - 6 feet from the trunck and ten feet off the ground.
Then Mr. Bear learned that severing the rope brought goodies from above.
So we go to bear cables and two bags balanced over the cable.
So Mr. Bear learns to climb the tree and shake the cable until goodies fall from above. Takes a while, but he is patient.
So people buy "bear-proof" containers. Not!
So they build "bear boxes" out of heavy steel set in concrete pads. Mr. Bear rushes at you from behind the said structure as you approach the "bear box." Most often, folks drop the food and run.
Trying to keep bears form associating people with food, they build a 12" electrified fence around the dump. Bears get shocked.

Bears dig under fence.
Electric wire is placed in a mat six feet out from the base of the fence. Can't dig in, by golly. Bears wait in crowds at gate for trucks to enter and enter with trucks -- if the trucks enter.
Stupid bears or stupid people?
Circus trainer for RBB&B told me once (emphatically) that bears were lots smarter than the big cats (but he trained big cats 'cause he liked the challange). He could be right, I suppose.
All the big cats are pretty much gone from the eastern U.S. They got killed off. Lots of bears - many 1000's. They adapted. We had a 400 pounder sighted less than two miles form here last week. He was hitting all the bird feeders and garbage cans. He took the same route last year - north to south loop from up by Lake Erie down into the next county and back east towards Pennsylvania. Hides by day and eats by night. Maybe he went the bear graduate school. Ghost bear.